projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b60a64
)
net/sunrpc: rename random32() to prandom_u32()
author
Akinobu Mita
<
[email protected]
>
Mon, 29 Apr 2013 23:21:37 +0000
(16:21 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 30 Apr 2013 01:28:43 +0000
(18:28 -0700)
Use preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita <
[email protected]
>
Cc: "J. Bruce Fields" <
[email protected]
>
Acked-by: Trond Myklebust <
[email protected]
>
Cc: "David S. Miller" <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
net/sunrpc/auth_gss/gss_krb5_wrap.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/auth_gss/gss_krb5_wrap.c
b/net/sunrpc/auth_gss/gss_krb5_wrap.c
index 88edec929d7331b1f15b9c9fb45e6aa5c4bdc6b3..1da52d1406fc87f0e625b0476bee3bedf682c6a1 100644
(file)
--- 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)
/* initialize to random value */
if (i == 0) {
- i =
random
32();
- i = (i << 32) |
random
32();
+ i =
prandom_u
32();
+ i = (i << 32) |
prandom_u
32();
}
switch (conflen) {