Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Feb 2003 07:01:50 -0500 (EST)
From:      Thomas David Rivers <rivers@dignus.com>
To:        ache@nagual.pp.ru, kris@obsecurity.org
Cc:        current@FreeBSD.ORG
Subject:   Re: Final fix for correlation problem (was Re: rand() is broken)
Message-ID:  <200302031201.h13C1oE03172@lakes.dignus.com>
In-Reply-To: <20030203114629.GA77557@nagual.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
I'm afraid I don't understand the fix... and how it
seems to affect the historical behaviour of srand()/rand().

How does it address the understanding that if I use
srand(28), I will get exactly the same sequence of
numbers srand(28) produced yesterday, last week, 
last year?

I have worked with programs that depend on exactly
that behavior.

That is,  given the same input seed - I expect
to see the same "random" sequence again.  

This requirement would seem to indicate that changing
srand()/rand() isn't really possible...  And, also,
I believe, why random() was introduced...

Please, oh please, don't change that behavior in 
srand()/rand().

	- Dave Rivers -

--
rivers@dignus.com                        Work: (919) 676-0847
Get your mainframe programming tools at http://www.dignus.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302031201.h13C1oE03172>