aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorFrançois Michel <[email protected]>2023-08-15 11:23:39 +0200
committerJakub Kicinski <[email protected]>2023-08-17 19:15:05 -0700
commit9c87b2aeccf174bce220e527d48391439981273b (patch)
tree20b51823c6840055659ef4fd5b162d5c1f622cc8 /tools/perf/scripts/python/event_analyzing_sample.py
parent4072d97ddc447ce9dd8f7a39cdf6f92d2031bb01 (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