Date: Sat, 23 Jul 2005 11:51:38 +0930 From: Greg 'groggy' Lehey <grog@FreeBSD.org> To: Andrey Chernov <ache@freebsd.org>, src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/games/fortune/fortune fortune.c Message-ID: <20050723022138.GX842@wantadilla.lemis.com> In-Reply-To: <20050723020810.GA28712@nagual.pp.ru> References: <200507230146.j6N1koqL061690@repoman.freebsd.org> <20050723015517.GA28428@nagual.pp.ru> <20050723020120.GV842@wantadilla.lemis.com> <20050723020810.GA28712@nagual.pp.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--USQ0BwiCE5W4XvtQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Saturday, 23 July 2005 at 6:08:10 +0400, Andrey A. Chernov wrote: > On Sat, Jul 23, 2005 at 11:31:20AM +0930, Greg 'groggy' Lehey wrote: >> No, it was there: >> >> ... >> >> But for whatever reasons, many systems seem to have incorrect >> random(4) initialization. You'll recall the debate about removing > > If you care about many systems, please do not degrade our own FreeBSD > system fortune randomness and use this workaround instead: > > #ifdef __FreeBSD__ > ... > #else This is only for FreeBSD. >> [...] Rush Limbaugh fortunes recently because, for some reason >> related to this issue, his fortunes kept popping up. This is the >> only place [...] > > It means something wrong with /dev/random initialization, ... Yes, that's what I said. > Use rc-embedded ability to keep randomness around boots and add more > random sources instead. I suspect that there's a large number of people out there who don't want to go to that much trouble just to get rid of Rush Limbaugh. For people who really care about random(4), that's a different issue, of course. Would you like to investigate? I've been seeing problems in this are for the last few years. And of course, once we can be really sure that random(4) is always at least as random as the microsecond value of the time at which the fortune program is started, the commit should be reverted. > You fix the problem in the wrong place. We have a _lots_ of places > where srandomdev() or arc4random() used (which both use /dev/random) Correct. Greg -- The virus once contained in this message has lost interest in life, shrivelled up and died. LEMIS anti-virus has given it an appropriate burial. For further details see http://www.lemis.com/grog/lemis-virus.html Finger grog@FreeBSD.org for PGP public key. See complete headers for address and phone numbers. --USQ0BwiCE5W4XvtQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFC4amyIubykFB6QiMRAk0HAJ0eDYKZCL+lyUAPblEQ6IKfl2+1JACdFlDe 84pV6NXxHC+fxeTo2fHGDsg= =414G -----END PGP SIGNATURE----- --USQ0BwiCE5W4XvtQ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050723022138.GX842>