Ian Lepore <i...@freebsd.org> writes:
> Yeah.  I vaguely remember discussion about this something like 12-18
> months ago.  As I remember it, there was a desire to avoid using the
> same startup saved entropy on a rapid series of reboots and the thinking
> was to combat that by generating some fresh saved entropy on each boot.

Sure, but this can be done from cron instead of an rc script (see
below).

> It seems like that should work if the old saved entropy were stirred
> in with the modicum of boot-time entropy before generating a new save
> file.

That's what happens in random_start().

> I was thinking maybe postrandom should only try to save a new file if
> there are some existing files to avoid the possibility of hanging.  But
> when I look at postrandom more closely, it seems to be generating a save
> file, then deleting it along with all the other save files.

Umm, yes, I hadn't noticed that (I only reviewed the kernel code).  I
think we should just remove the fastsaveseed line.  Instead, make a
@reboot entry for save-entropy in /etc/crontab.

DES
-- 
Dag-Erling Smørgrav - d...@des.no
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to