From owner-freebsd-current Thu Oct 26 3:31:21 2000 Delivered-To: freebsd-current@freebsd.org Received: from hse-toronto-ppp119263.sympatico.ca (HSE-Toronto-ppp86755.sympatico.ca [216.209.24.38]) by hub.freebsd.org (Postfix) with SMTP id 041E537B479 for ; Thu, 26 Oct 2000 03:31:19 -0700 (PDT) Received: (qmail 12987 invoked by uid 0); 26 Oct 2000 10:32:21 -0000 Received: from unknown (HELO zort.on.ca) (rbt@10.0.0.100) by hse-toronto-ppp86755.sympatico.ca with SMTP; 26 Oct 2000 10:32:21 -0000 Message-ID: <39F807E6.69AD0CBB@zort.on.ca> Date: Thu, 26 Oct 2000 06:31:02 -0400 From: Rod Taylor Organization: Zort X-Mailer: Mozilla 4.75 [en] (X11; U; FreeBSD 4.1.1-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Doug Barton , current@FreeBSD.ORG Subject: Re: entropy reseeding is totally broken References: <39F7B2EF.6DCC868D@gorean.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Doug Barton wrote: > > Wesley Morgan wrote: > > > > I'm not knocking anyone or any code, especially considering this IS > > -current... BUT... I don't need to read the code to know that I am seeing > > the same fortunes on first login after reboot more often than I can > > attribute to random chance. Maybe nanotime is being harvested, but it > > seems that there is a time lag between system startup and reaching a state > > of "true pseudo-entropy". Also, every reboot has entropy caching failing > > to work. I don't know if this is a product of the broken reseeding or > > what, because the /etc/rc files seem to be fine. > > How exactly are you rebooting? If you're using the 'reboot' command, > that explains why entropy reseeding is not working. As has been > discussed several times on -current, you only run rc.shutdown if you use > another method, like 'shutdown -r now', 'init 6', or even the trust > three-finger salute. How about when I hit the reset button? That case SHOULD be taken care of too! Would it not be possible to sample /dev/random to store the entropy every hour or so that the system runs? Atleast that way you would be guarenteed to have something. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message