From 4b1cb37955b2cb556622255fc56dd967064e4b6f Mon Sep 17 00:00:00 2001 From: sthen <> Date: Wed, 2 Oct 2019 17:15:40 +0000 Subject: [PATCH] feed "sysctl hw" into /dev/random; a cheap way to feed in sensor data as a one-shot at boot without more complex kernel work, and also includes some serial numbers/guids which may add a little more entropy e.g. for systems where /etc/random.seed may be known (e.g. cloned disk images). "why not" deraadt@ --- src/etc/rc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/etc/rc b/src/etc/rc index 9a391798..8e0bd21d 100644 --- a/src/etc/rc +++ b/src/etc/rc @@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.537 2019/05/10 13:29:21 guenther Exp $ +# $OpenBSD: rc,v 1.538 2019/10/02 17:15:40 sthen Exp $ # System startup script run by init on autoboot or after single-user. # Output and error are redirected to console by init, and the console is the @@ -445,6 +445,7 @@ sh /etc/netstart # Any write triggers a rekey. dmesg >/dev/random +sysctl hw >/dev/random # Load pf rules and bring up pfsync interface. if [[ $pf != NO ]]; then