diff options
author | 2023-08-15 11:23:39 +0200 | |
---|---|---|
committer | 2023-08-17 19:15:05 -0700 | |
commit | 9c87b2aeccf174bce220e527d48391439981273b (patch) | |
tree | 20b51823c6840055659ef4fd5b162d5c1f622cc8 /tools/perf/scripts/python/syscall-counts.py | |
parent | netem: add prng attribute to netem_sched_data (diff) | |
download | wireguard-linux-9c87b2aeccf174bce220e527d48391439981273b.tar.xz wireguard-linux-9c87b2aeccf174bce220e527d48391439981273b.zip |
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 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions