diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2013-04-29 19:21:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 21:28:43 -0400 |
commit | 5106f3bd8164ee269ba857eb50d123010666a276 (patch) | |
tree | 2bc94afc37ff2adf337fd23b47ee208601846ca5 /net | |
parent | c86d2ddec7692e9fe10458e2d8e19ac087f180f8 (diff) |
net/sched: rename random32() to prandom_u32()
Use preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Stephen Hemminger <shemminger@vyatta.com>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/sched/sch_choke.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_choke.c b/net/sched/sch_choke.c index cc37dd52ecf9..ef53ab8d0aae 100644 --- a/net/sched/sch_choke.c +++ b/net/sched/sch_choke.c | |||
@@ -80,7 +80,7 @@ struct choke_sched_data { | |||
80 | /* deliver a random number between 0 and N - 1 */ | 80 | /* deliver a random number between 0 and N - 1 */ |
81 | static u32 random_N(unsigned int N) | 81 | static u32 random_N(unsigned int N) |
82 | { | 82 | { |
83 | return reciprocal_divide(random32(), N); | 83 | return reciprocal_divide(prandom_u32(), N); |
84 | } | 84 | } |
85 | 85 | ||
86 | /* number of elements in queue including holes */ | 86 | /* number of elements in queue including holes */ |