Date: Tue, 8 Oct 1996 01:13:34 +0400 (MSD) From: "=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?=" (Andrey A. Chernov) <ache@nagual.ru> To: j@uriah.heep.sax.de (J Wunsch) Cc: freebsd-hackers@FreeBSD.org Subject: Re: rand() and srand() Message-ID: <199610072113.BAA00770@nagual.ru> In-Reply-To: <199610071921.VAA15800@uriah.heep.sax.de> from "J Wunsch" at "Oct 7, 96 09:21:04 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. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ I completely agree. -- Andrey A. Chernov <ache@nagual.ru> http://www.nagual.ru/~ache/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610072113.BAA00770>