|
@@ -80,7 +80,7 @@ struct choke_sched_data {
|
|
|
/* deliver a random number between 0 and N - 1 */
|
|
/* deliver a random number between 0 and N - 1 */
|
|
|
static u32 random_N(unsigned int N)
|
|
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 */
|
|
/* number of elements in queue including holes */
|