diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-12-27 04:21:04 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-12-27 04:21:04 +0000 |
commit | a3ff4a9f709df2a436d609c579fedee17dd133e8 (patch) | |
tree | ccd0d3cc62a1393e587f972dd27c0f2f5ee8671c /etc | |
parent | 8548fb9ade271be913773e1b1c1b98f836e24f11 (diff) |
all the random devices have been the same for a while; so let us avoid
being obtuse and use /dev/random
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.410 2013/12/26 18:05:31 espie Exp $ +# $OpenBSD: rc,v 1.411 2013/12/27 04:21:03 deraadt Exp $ # System startup script run by init on autoboot # or after single-user. @@ -102,13 +102,13 @@ wsconsctl_conf() random_seed() { if [ -f /var/db/host.random ]; then - dd if=/var/db/host.random of=/dev/arandom bs=65536 count=1 \ + dd if=/var/db/host.random of=/dev/random bs=65536 count=1 \ > /dev/null 2>&1 chmod 600 /var/db/host.random >/dev/null 2>&1 # reset seed file, so that if a shutdown-less reboot occurs, # the next seed is not a repeat - dd if=/dev/arandom of=/var/db/host.random bs=65536 count=1 \ + dd if=/dev/random of=/var/db/host.random bs=65536 count=1 \ > /dev/null 2>&1 fi } @@ -230,7 +230,7 @@ fi . /etc/rc.conf if [ X"$1" = X"shutdown" ]; then - dd if=/dev/arandom of=/var/db/host.random bs=65536 count=1 >/dev/null 2>&1 + dd if=/dev/random of=/var/db/host.random bs=65536 count=1 >/dev/null 2>&1 chmod 600 /var/db/host.random >/dev/null 2>&1 _c=$? if [ ${_c} -eq 0 -a -n "${pkg_scripts}" ]; then @@ -358,7 +358,7 @@ if [ -f /etc/resolv.conf.save ]; then touch /etc/resolv.conf fi . /etc/netstart -echo rekey > /dev/arandom # any write triggers an RC4 rekey +echo rekey > /dev/random # any write triggers an RC4 rekey if [ X"${pf}" != X"NO" ]; then if [ -f ${pf_rules} ]; then |