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.

(cherry picked from commit 1580afcd6eaf803192f014f3658036cbd49a6e3c)
(cherry picked from commit d03a8d181cfedde305602c9285ca4b51fee8562f)

Details

Provenance
cpercivaAuthored on Nov 13 2021, 4:38 PM
obrienCommitted on Feb 18 2022, 4:09 AM
Parents
rGdd9548db7a72: kern: random: collect ~16x less from fast-entropy sources
Branches
Unknown
Tags
Unknown