Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5106f3bd authored by Akinobu Mita's avatar Akinobu Mita Committed by Linus Torvalds
Browse files

net/sched: rename random32() to prandom_u32()



Use preferable function name which implies using a pseudo-random
number generator.

Signed-off-by: default avatarAkinobu 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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c86d2dde
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */