From 782cad4826c91d0ff901fab4d81cb70eccb624f2 Mon Sep 17 00:00:00 2001 From: Stuart Henderson Date: Wed, 2 Oct 2019 17:15:41 +0000 Subject: 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@ --- etc/rc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'etc/rc') diff --git a/etc/rc b/etc/rc index 9a3917986cc..8e0bd21d26d 100644 --- a/etc/rc +++ b/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 -- cgit v1.2.3