]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
net/sched: rename random32() to prandom_u32()
authorAkinobu Mita <akinobu.mita@gmail.com>
Sat, 23 Mar 2013 02:33:03 +0000 (13:33 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 26 Mar 2013 05:11:42 +0000 (16:11 +1100)
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>
net/sched/sch_choke.c

index cc37dd52ecf95dfd7d396fcea2ffc618e11a5101..ef53ab8d0aaec69628fe6bf497ced92dd5ebc44c 100644 (file)
@@ -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 */