mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
net/sunrpc: rename random32() to prandom_u32()
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]>
This commit is contained in:
parent
3b60a64fcc
commit
c86d2ddec7
1 changed files with 2 additions and 2 deletions
|
|
@ -130,8 +130,8 @@ gss_krb5_make_confounder(char *p, u32 conflen)
|
|||
|
||||
/* initialize to random value */
|
||||
if (i == 0) {
|
||||
i = random32();
|
||||
i = (i << 32) | random32();
|
||||
i = prandom_u32();
|
||||
i = (i << 32) | prandom_u32();
|
||||
}
|
||||
|
||||
switch (conflen) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue