Skip to content
Commit ae9ecd92 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

random: don't zap entropy count in rand_initialize()



The rand_initialize() function was being run fairly late in the kernel
boot sequence.  This was unfortunate, since it zero'ed the entropy
counters, thus throwing away credit that was accumulated earlier in
the boot sequence, and it also meant that initcall functions run
before rand_initialize were using a minimally initialized pool.

To fix this, fix init_std_data() to no longer zap the entropy counter;
it wasn't necessary, and move rand_initialize() to be an early
initcall.

Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent 301f0595
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment