mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
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>
This commit is contained in:
parent
c86d2ddec7
commit
5106f3bd81
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user