random: initialize the non-blocking pool via add_hwgenerator_randomness()

commit 3371f3da08 upstream.

If we have a hardware RNG and are using the in-kernel rngd, we should
use this to initialize the non-blocking pool so that getrandom(2)
doesn't block unnecessarily.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Theodore Ts'o 2016-06-12 18:11:51 -04:00 • committed by Greg Kroah-Hartman
commit f41fc0bfed