Date: Sat, 23 Jul 2005 01:46:50 +0000 (UTC) From: Greg Lehey <grog@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/games/fortune/fortune fortune.c Message-ID: <200507230146.j6N1koqL061690@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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.
Revision Changes Path
1.28 +3 -1 src/games/fortune/fortune/fortune.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507230146.j6N1koqL061690>
