Date: Mon, 7 Oct 1996 21:21:04 +0200 (MET DST) From: J Wunsch <j@uriah.heep.sax.de> To: freebsd-hackers@freebsd.org (FreeBSD hackers) Subject: Re: rand() and srand() Message-ID: <199610071921.VAA15800@uriah.heep.sax.de> In-Reply-To: <199610071857.MAA08190@rover.village.org> from Warner Losh at "Oct 7, 96 12:57:02 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
As Warner Losh wrote: > This tells me that if I give the same seed to srand() three times in a > row, I will get the same pseudo random sequence out of it. > > If you are proposing that this change, then you are breaking existing > code's assumptions. After all, it is documented to do this. This is also what ANSI requires. (And it requires that the default is the same as can be achieved by ``srand(1)''.) Nothing else is required though. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610071921.VAA15800>