OSDN Git Service
(root)
/
android-x86
/
kernel.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
[android-x86/kernel.git]
/
net
/
sched
/
act_gact.c
diff --git
a/net/sched/act_gact.c
b/net/sched/act_gact.c
index
f26e6b8
..
3133307
100644
(file)
--- a/
net/sched/act_gact.c
+++ b/
net/sched/act_gact.c
@@
-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;
}