net: replace macros net_random and net_srandom with direct calls to prandom
[linux-block.git] / net / sched / act_gact.c
index f26e6b890cc7aefb35a4844f994e0a1a2d908fed..31333073cd8084cfa56975eb29378f6f1a35b328 100644 (file)
@@ -29,7 +29,7 @@ static struct tcf_hashinfo gact_hash_info;
 #ifdef CONFIG_GACT_PROB
 static int gact_net_rand(struct tcf_gact *gact)
 {
-       if (!gact->tcfg_pval || net_random() % gact->tcfg_pval)
+       if (!gact->tcfg_pval || prandom_u32() % gact->tcfg_pval)
                return gact->tcf_action;
        return gact->tcfg_paction;
 }