On Wed, Dec 22, 2010 at 08:28:51AM +0300, Vadim Zhukov wrote: > On 21 December 2010 G. 22:59:22 Theo de Raadt wrote: > > Go look at the function random_seed() in /usr/src/etc/rc > > And it's definitely worth looking... Patch below.
Believe it or not, but this diff has been circling around developers already a few days ago. -Otto > > -- > Best wishes, > Vadim Zhukov > > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thing in e-mail? > > > Index: rc > =================================================================== > RCS file: /cvs/src/etc/rc,v > retrieving revision 1.345 > diff -u -p -r1.345 rc > --- rc 8 Nov 2010 19:44:36 -0000 1.345 > +++ rc 22 Dec 2010 05:25:37 -0000 > @@ -102,14 +102,12 @@ wsconsctl_conf() > random_seed() > { > if [ -f /var/db/host.random -a "X$random_seed_done" = "X" ]; then > - dd if=/var/db/host.random of=/dev/urandom bs=1024 count=64 \ > - > /dev/null 2>&1 > dd if=/var/db/host.random of=/dev/arandom bs=1024 count=64 \ > > /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/urandom of=/var/db/host.random bs=1024 count=64 \ > + dd if=/dev/arandom of=/var/db/host.random bs=1024 count=64 \ > > /dev/null 2>&1 > > random_seed_done=1 > @@ -312,7 +310,7 @@ mount -s /var >/dev/null 2>&1 > > # if there's no /var/db/host.random, make one through /dev/urandom > if [ ! -f /var/db/host.random ]; then > - dd if=/dev/urandom of=/var/db/host.random bs=1024 count=64 \ > + dd if=/dev/arandom of=/var/db/host.random bs=1024 count=64 \ > >/dev/null 2>&1 > chmod 600 /var/db/host.random >/dev/null 2>&1 > else