Browse Source

after seeding from the host.random file, immediately reset the seed file, so

that if a shutdown-less reboot occurs, the next re-seed is not a repeat
OPENBSD_2_8
deraadt 24 years ago
parent
commit
17c9582cac
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      src/etc/rc

+ 6
- 1
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.156 2000/10/18 21:28:54 mickey Exp $
# $OpenBSD: rc,v 1.157 2000/10/27 06:36:35 deraadt Exp $
# System startup script run by init on autoboot
# or after single-user.
@ -142,6 +142,11 @@ else
> /dev/null 2>&1
fi
# reset seed file, so that if a shutdown-less reboot occurs,
# the next seed is not a repeat
dd if=/dev/urandom of=/var/db/host.random bs=1024 count=64 \
> /dev/null 2>&1
# clean up left-over files
rm -f /etc/nologin
rm -f /var/spool/lock/LCK.*


Loading…
Cancel
Save