aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorHannes Frederic Sowa <[email protected]>2013-11-11 12:20:33 +0100
committerDavid S. Miller <[email protected]>2013-11-11 14:32:14 -0500
commit6d31920246a9fc80be4f16acd27c0bbe8d7b8494 (patch)
tree59cf494b43a77fd528c77364c2376e65975a128a /tools/perf/util/trace-event-scripting.c
parent51c37a70aaa3f95773af560e6db3073520513912 (diff)
random32: add periodic reseeding
The current Tausworthe PRNG is never reseeded with truly random data after the first attempt in late_initcall. As this PRNG is used for some critical random data as e.g. UDP port randomization we should try better and reseed the PRNG once in a while with truly random data from get_random_bytes(). When we reseed with prandom_seed we now make also sure to throw the first output away. This suffices the reseeding procedure. The delay calculation is based on a proposal from Eric Dumazet. Joint work with Daniel Borkmann. Cc: Eric Dumazet <[email protected]> Cc: Theodore Ts'o <[email protected]> Signed-off-by: Hannes Frederic Sowa <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions