From owner-freebsd-hackers Mon Oct 7 13:19:55 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA25319 for hackers-outgoing; Mon, 7 Oct 1996 13:19:55 -0700 (PDT) Received: from sovcom.kiae.su (sovcom.kiae.su [193.125.152.1]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id NAA25281 for ; Mon, 7 Oct 1996 13:19:49 -0700 (PDT) Received: by sovcom.kiae.su id AA01762 (5.65.kiae-1 ); Mon, 7 Oct 1996 23:15:59 +0300 Received: by sovcom.KIAE.su (UUMAIL/2.0); Mon, 7 Oct 96 23:15:59 +0300 Received: (from ache@localhost) by nagual.ru (8.7.6/8.7.3) id AAA00446; Tue, 8 Oct 1996 00:15:20 +0400 (MSD) Message-Id: <199610072015.AAA00446@nagual.ru> Subject: Re: rand() and srand() In-Reply-To: <199610071857.MAA08190@rover.village.org> from "Warner Losh" at "Oct 7, 96 12:57:02 pm" To: imp@village.org (Warner Losh) Date: Tue, 8 Oct 1996 00:15:20 +0400 (MSD) Cc: hackers@FreeBSD.org From: "=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?=" (Andrey A. Chernov) Organization: self X-Class: Fast X-Mailer: ELM [version 2.4ME+ PL28 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > 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. NOBODY HERE WANTS TO BREAK THE "SAME SEEDING" in rand() or random()! TERRY'S IDEA OF "SAME SEEDING" IS HIS OWN TOY WHICH HAVE NOTHIG COMMON WITH STANDARD "SAME SEEDING" IDEA. -- Andrey A. Chernov http://www.nagual.ru/~ache/