net: replace macros net_random and net_srandom with direct calls to prandom
[sfrench/cifs-2.6.git] / net / 802 / garp.c
index 5d9630a0eb93b75604f49f3c9de84ad7a417de03..b38ee6dcba45fe4099029a6ac51ab38391c653d0 100644 (file)
@@ -397,7 +397,7 @@ static void garp_join_timer_arm(struct garp_applicant *app)
 {
        unsigned long delay;
 
-       delay = (u64)msecs_to_jiffies(garp_join_time) * net_random() >> 32;
+       delay = (u64)msecs_to_jiffies(garp_join_time) * prandom_u32() >> 32;
        mod_timer(&app->join_timer, jiffies + delay);
 }