Browse Source

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@
OPENBSD_6_6
sthen 4 years ago
parent
commit
4b1cb37955
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/etc/rc

+ 2
- 1
src/etc/rc View File

@ -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


Loading…
Cancel
Save