]> Pileus Git - ~andy/linux/commit
random: make add_timer_randomness() fill the nonblocking pool first
authorTheodore Ts'o <tytso@mit.edu>
Sun, 3 Nov 2013 04:15:05 +0000 (00:15 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 3 Nov 2013 23:18:47 +0000 (18:18 -0500)
commit40db23e5337d99fda05ee6cd18034b516f8f123d
tree3620424cec3d8df5ec5455335620e65b37a94909
parentf80bbd8b92987f55f26691cd53785c4a54622eb0
random: make add_timer_randomness() fill the nonblocking pool first

Change add_timer_randomness() so that it directs incoming entropy to
the nonblocking pool first if it hasn't been fully initialized yet.
This matches the strategy we use in add_interrupt_randomness(), which
allows us to push the randomness where we need it the most during when
the system is first booting up, so that get_random_bytes() and
/dev/urandom become safe to use as soon as possible.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
drivers/char/random.c