diff options
author | François Michel <[email protected]> | 2023-08-15 11:23:39 +0200 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-08-17 19:15:05 -0700 |
commit | 9c87b2aeccf174bce220e527d48391439981273b (patch) | |
tree | 20b51823c6840055659ef4fd5b162d5c1f622cc8 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 4072d97ddc447ce9dd8f7a39cdf6f92d2031bb01 (diff) |
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 <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Acked-by: Stephen Hemminger <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions