diff options
author | François Michel <francois.michel@uclouvain.be> | 2023-08-15 12:23:39 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-08-18 05:15:05 +0300 |
commit | 9c87b2aeccf174bce220e527d48391439981273b (patch) | |
tree | 20b51823c6840055659ef4fd5b162d5c1f622cc8 /net/sched/sch_ets.c | |
parent | 4072d97ddc447ce9dd8f7a39cdf6f92d2031bb01 (diff) | |
download | linux-9c87b2aeccf174bce220e527d48391439981273b.tar.xz |
netem: use a seeded PRNG for generating random losses
Use prandom_u32_state() instead of get_random_u32() to generate
the random loss events of netem. The state of the prng is part
of the prng attribute of struct netem_sched_data.
Signed-off-by: François Michel <francois.michel@uclouvain.be>
Reviewed-by: Simon Horman <horms@kernel.org>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Link: https://lore.kernel.org/r/20230815092348.1449179-3-francois.michel@uclouvain.be
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/sched/sch_ets.c')
0 files changed, 0 insertions, 0 deletions