Lines Matching refs:rnd
210 u32 rnd = prandom_u32_state(&q->prng.prng_state); in loss_4state() local
224 if (rnd < clg->a4) { in loss_4state()
227 } else if (clg->a4 < rnd && rnd < clg->a1 + clg->a4) { in loss_4state()
230 } else if (clg->a1 + clg->a4 < rnd) { in loss_4state()
236 if (rnd < clg->a5) { in loss_4state()
245 if (rnd < clg->a3) in loss_4state()
247 else if (clg->a3 < rnd && rnd < clg->a2 + clg->a3) { in loss_4state()
249 } else if (clg->a2 + clg->a3 < rnd) { in loss_4state()
333 u32 rnd; in tabledist() local
338 rnd = get_crandom(state, prng); in tabledist()
342 return ((rnd % (2 * (u32)sigma)) + mu) - sigma; in tabledist()
344 t = dist->table[rnd % dist->size]; in tabledist()