cvs commit: src/games/fortune/fortune fortune.c
Andrey Chernov
ache at FreeBSD.ORG
Sat Jul 23 01:55:21 GMT 2005
On Sat, Jul 23, 2005 at 01:46:50AM +0000, Greg Lehey wrote:
> grog 2005-07-23 01:46:50 UTC
>
> FreeBSD src repository
>
> Modified files:
> games/fortune/fortune fortune.c
> Log:
> Use a random number to seed the random number generator. Goodby, Rush
> Limbaugh.
>
> This should have already worked properly if random(4) has been
> initialized correctly, but it seems that this is frequently not the
> case. Instead, use the microsecond part of the current time as the
> seed.
It is already properly and truly randomly initialized, instead of any
microseconds tricks.
Do you miss srandomdev(); here?
--
http://ache.pp.ru/
More information about the cvs-src
mailing list