From: Akinobu Mita Date: Mon, 29 Apr 2013 23:21:38 +0000 (-0700) Subject: net/sched: rename random32() to prandom_u32() X-Git-Tag: firefly_0821_release~3680^2~660^2~4 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5106f3bd8164ee269ba857eb50d123010666a276;p=firefly-linux-kernel-4.4.55.git net/sched: rename random32() to prandom_u32() Use preferable function name which implies using a pseudo-random number generator. Signed-off-by: Akinobu Mita Cc: Stephen Hemminger Cc: Jamal Hadi Salim Cc: "David S. Miller" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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 { /* deliver a random number between 0 and N - 1 */ static u32 random_N(unsigned int N) { - return reciprocal_divide(random32(), N); + return reciprocal_divide(prandom_u32(), N); } /* number of elements in queue including holes */