Re-create a seed file on a first boot too -- better than not having any
seed at all.

Index: etc/rc
===================================================================
RCS file: /cvs/src/etc/rc,v
retrieving revision 1.400
diff -u etc/rc
--- etc/rc      6 Apr 2012 15:11:30 -0000       1.400
+++ etc/rc      2 Jul 2012 22:30:44 -0000
@@ -104,13 +104,13 @@
        if [ -f /var/db/host.random ]; then
                dd if=/var/db/host.random of=/dev/arandom 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 \
-                   > /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/arandom of=/var/db/host.random bs=65536 count=1 \
+           > /dev/null 2>&1
+       chmod 600 /var/db/host.random >/dev/null 2>&1
 }
 
 fill_baddynamic()

Reply via email to