Lines Matching full:prng
108 struct prng { struct
111 } prng; member
187 static u32 get_crandom(struct crndstate *state, struct prng *p) in get_crandom()
210 u32 rnd = prandom_u32_state(&q->prng.prng_state); in loss_4state()
275 struct rnd_state *s = &q->prng.prng_state; in loss_gilb_ell()
299 return q->loss && q->loss >= get_crandom(&q->loss_cor, &q->prng); in loss_event()
328 struct prng *prng, in tabledist() argument
338 rnd = get_crandom(state, prng); in tabledist()
458 if (q->duplicate && q->duplicate >= get_crandom(&q->dup_cor, &q->prng)) in netem_enqueue()
493 if (q->corrupt && q->corrupt >= get_crandom(&q->corrupt_cor, &q->prng)) { in netem_enqueue()
549 q->reorder < get_crandom(&q->reorder_cor, &q->prng)) { in netem_enqueue()
554 &q->delay_cor, &q->prng, q->delay_dist); in netem_enqueue()
661 NULL, &q->prng, q->slot_dist); in get_slot_next()
1063 q->prng.seed = nla_get_u64(tb[TCA_NETEM_PRNG_SEED]); in netem_change()
1065 q->prng.seed = get_random_u64(); in netem_change()
1066 prandom_seed_state(&q->prng.prng_state, q->prng.seed); in netem_change()
1231 if (nla_put_u64_64bit(skb, TCA_NETEM_PRNG_SEED, q->prng.seed, in netem_dump()