diff options
author | 2022-05-03 14:14:32 +0200 | |
---|---|---|
committer | 2022-05-13 23:59:23 +0200 | |
commit | cbe89e5a375a51bbb952929b93fa973416fea74e (patch) | |
tree | 7e679dde0dc8117d6a56934b74a497ee35dcb528 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | random: mix in timestamps and reseed on system restore (diff) | |
download | linux-dev-cbe89e5a375a51bbb952929b93fa973416fea74e.tar.xz linux-dev-cbe89e5a375a51bbb952929b93fa973416fea74e.zip |
random: do not use batches when !crng_ready()
It's too hard to keep the batches synchronized, and pointless anyway,
since in !crng_ready(), we're updating the base_crng key really often,
where batching only hurts. So instead, if the crng isn't ready, just
call into get_random_bytes(). At this stage nothing is performance
critical anyhow.
Cc: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions