net: replace macros net_random and net_srandom with direct calls to prandom
[sfrench/cifs-2.6.git] / net / 802 / mrp.c
index 3ed616215870cf73b4d8a516d52e5da04d9472e5..72db2785ef2c010fc20718e20e18e6511cd5a5dd 100644 (file)
@@ -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);
 }