Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Aug 2008 01:00:13 +0400
From:      Andrey Chernov <ache@nagual.pp.ru>
To:        David Malone <dwmalone@maths.tcd.ie>
Cc:        cvs-src@FreeBSD.org, kris@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org, "M. Warner Losh" <imp@bsdimp.com>
Subject:   Re: cvs commit: src/games/fortune/strfile strfile.c
Message-ID:  <20080808210012.GA71737@nagual.pp.ru>
In-Reply-To: <20080808204329.GA64169@walton.maths.tcd.ie>
References:  <489B797F.7020101@FreeBSD.org> <20080807230532.GA42775@nagual.pp.ru> <489B81AC.8090508@FreeBSD.org> <20080808.002150.-1037138460.imp@bsdimp.com> <20080808204329.GA64169@walton.maths.tcd.ie>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 08, 2008 at 09:43:29PM +0100, David Malone wrote:
> On Fri, Aug 08, 2008 at 12:21:50AM -0600, M. Warner Losh wrote:
> > This does beg the question why we need cryptographically secure
> > randomness for fortune, however...
> 
> I seem to remember us catching a /dev/random related bug because
> fortune displayed the same quote too often. Something to do with
> seeding maybe?

It was random kernel module bug fixed long time ago (perhaps due to 
furtune help :)

Speking in general, now even in the situation when absolutely no random 
enthropy available at the call moment (very unlikely because of disks or 
net etc. activity), kernel PRNG seeded with time, so plays not worse that 
old time+getpid seeding used everywhere counting the fact that pids are 
sequentual during the boot so it is better not relay on them.

-- 
http://ache.pp.ru/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080808210012.GA71737>