diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2013-04-29 19:21:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 21:28:43 -0400 |
commit | c86d2ddec7692e9fe10458e2d8e19ac087f180f8 (patch) | |
tree | 53117d0194274e2f43b5db67fba858253a13a0e8 /net/sunrpc/auth_gss/gss_krb5_wrap.c | |
parent | 3b60a64fcc877ecfe44660558ed95005e3f82017 (diff) |
net/sunrpc: rename random32() to prandom_u32()
Use preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: "J. Bruce Fields" <bfields@fieldses.org>
Acked-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/sunrpc/auth_gss/gss_krb5_wrap.c')
-rw-r--r-- | net/sunrpc/auth_gss/gss_krb5_wrap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/auth_gss/gss_krb5_wrap.c b/net/sunrpc/auth_gss/gss_krb5_wrap.c index 88edec929d73..1da52d1406fc 100644 --- a/net/sunrpc/auth_gss/gss_krb5_wrap.c +++ b/net/sunrpc/auth_gss/gss_krb5_wrap.c | |||
@@ -130,8 +130,8 @@ gss_krb5_make_confounder(char *p, u32 conflen) | |||
130 | 130 | ||
131 | /* initialize to random value */ | 131 | /* initialize to random value */ |
132 | if (i == 0) { | 132 | if (i == 0) { |
133 | i = random32(); | 133 | i = prandom_u32(); |
134 | i = (i << 32) | random32(); | 134 | i = (i << 32) | prandom_u32(); |
135 | } | 135 | } |
136 | 136 | ||
137 | switch (conflen) { | 137 | switch (conflen) { |