Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Akinobu Mita and committed by
Linus Torvalds
5106f3bd c86d2dde

+1 -1
+1 -1
net/sched/sch_choke.c
··· 80 80 /* deliver a random number between 0 and N - 1 */ 81 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 86 /* number of elements in queue including holes */