]> git.ipfire.org Git - ipfire-2.x.git/commit - src/initscripts/system/random
random: Initialise the kernel's PRNG earlier
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 29 Apr 2020 19:33:04 +0000 (19:33 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 17 May 2020 07:46:32 +0000 (07:46 +0000)
commit97b1857ba47f0e94896976028e99a3275328c819
tree53065db11029b50cb54cdfd517188e136667ad04
parent65cb935200e61bec8ae97435f6cb8e1e592aab33
random: Initialise the kernel's PRNG earlier

Since more processes depend on good randomness, we need to
make sure that the kernel's PRNG is initialized as early as
possible.

For systems without a HWRNG, we will need to fall back to our
noisy loop and wait until we have enough randomness.

This patch also removes saving and restoring the seed. This
is no longer useful because the kernel's PRNG only takes any
input after it has successfully been seeded from other sources.

Hence adding this seed does not increase its randomness.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/rootfiles/common/aarch64/initscripts
config/rootfiles/common/armv5tel/initscripts
config/rootfiles/common/i586/initscripts
config/rootfiles/common/x86_64/initscripts
lfs/initscripts
src/initscripts/system/random