diff options
author | 2013-11-03 16:40:53 -0500 | |
---|---|---|
committer | 2013-11-03 18:20:05 -0500 | |
commit | 644008df899ec252e78db28c1b6d6b86779aada8 (patch) | |
tree | 4d33e8e3bb0d9c487bc337e2b9c44387bc847a71 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | random: don't zap entropy count in rand_initialize() (diff) | |
download | linux-dev-644008df899ec252e78db28c1b6d6b86779aada8.tar.xz linux-dev-644008df899ec252e78db28c1b6d6b86779aada8.zip |
random: initialize the last_time field in struct timer_rand_state
Since we initialize jiffies to wrap five minutes before boot (see
INITIAL_JIFFIES defined in include/linux/jiffies.h) it's important to
make sure the last_time field is initialized to INITIAL_JIFFIES.
Otherwise, the entropy estimator will overestimate the amount of
entropy resulting from the first call to add_timer_randomness(),
generally by about 8 bits.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions