git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: replace macros net_random and net_srandom with direct calls to prandom
[sfrench/cifs-2.6.git]
/
net
/
802
/
mrp.c
diff --git
a/net/802/mrp.c
b/net/802/mrp.c
index 3ed616215870cf73b4d8a516d52e5da04d9472e5..72db2785ef2c010fc20718e20e18e6511cd5a5dd 100644
(file)
--- a/
net/802/mrp.c
+++ b/
net/802/mrp.c
@@
-583,7
+583,7
@@
static void mrp_join_timer_arm(struct mrp_applicant *app)
{
unsigned long delay;
- delay = (u64)msecs_to_jiffies(mrp_join_time) *
net_random
() >> 32;
+ delay = (u64)msecs_to_jiffies(mrp_join_time) *
prandom_u32
() >> 32;
mod_timer(&app->join_timer, jiffies + delay);
}