Commit c86d2dde authored by Akinobu Mita's avatar Akinobu Mita Committed by Linus Torvalds

net/sunrpc: rename random32() to prandom_u32()

Use preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Cc: "J. Bruce Fields" <bfields@fieldses.org>
Acked-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 3b60a64f
...@@ -130,8 +130,8 @@ gss_krb5_make_confounder(char *p, u32 conflen) ...@@ -130,8 +130,8 @@ gss_krb5_make_confounder(char *p, u32 conflen)
/* initialize to random value */ /* initialize to random value */
if (i == 0) { if (i == 0) {
i = random32(); i = prandom_u32();
i = (i << 32) | random32(); i = (i << 32) | prandom_u32();
} }
switch (conflen) { switch (conflen) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment