HomeFreeBSD

randomdev: Remove 100 ms sleep from write routine

Description

randomdev: Remove 100 ms sleep from write routine

This was introduced in 2014 along with the comment (which has since
been deleted):
/* Introduce an annoying delay to stop swamping */

Modern cryptographic random number generators can ingest arbitrarily
large amounts of non-random (or even maliciously selected) input
without losing their security.

Depending on the number of "boot entropy files" present on the system,
this can speed up the boot process by up to 1 second.

Reviewed by: cem
Sponsored by: https://www.patreon.com/cperciva
Differential Revision: https://reviews.freebsd.org/D32984

(cherry picked from commit 1580afcd6eaf803192f014f3658036cbd49a6e3c)

Details

Provenance
cpercivaAuthored on Nov 13 2021, 4:38 PM
Reviewer
cem
Differential Revision
D32984: randomdev: Remove 100 ms sleep from write routine
Parents
rG3afc5f08a95f: uefi(8): loader.efi does not search for loader.efi
Branches
Unknown
Tags
Unknown