Commit Graph

1 Commits (9d6a0352e7af9aef95f4d983e39516b76e7fc8ba)

Author SHA1 Message Date
Felix Fietkau e64463ebde util-linux: avoid using the getrandom syscall
getrandom blocks until the random pool is being initialized.
Unfortunately, this code is being called early during init to create the
overlay filesystem, on some devices leaving little chance for a
successful random pool init.
True randomness is not that important here, so fix this issue by
sticking to using /dev/urandom, like in older versions of this code.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years ago