Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Feb 2003 11:19:17 +0000
From:      Mark Murray <mark@grondar.org>
To:        "Andrey A. Chernov" <ache@nagual.pp.ru>
Cc:        current@FreeBSD.ORG
Subject:   Re: Final fix for 0 problem (was Re: rand() is broken) 
Message-ID:  <200302031119.h13BJHaX058897@grimreaper.grondar.org>
In-Reply-To: Your message of "Mon, 03 Feb 2003 14:08:41 %2B0300." <20030203110841.GA77187@nagual.pp.ru> 

next in thread | previous in thread | raw e-mail | index | archive | help
"Andrey A. Chernov" writes:
> On Mon, Feb 03, 2003 at 10:55:42 +0000, Mark Murray wrote:
> > 
> > How do you _know_ that your newly chosen magic number isn't going to cause
> > some kind of recurring (and too-short) sequence of numbers?
> 
> I run simple test for it, it is not too short.

"simple test"?

How long did you check for?

random() is documented to not repeat before some number of outputs;
how do you know that this fix does not significantly shorten that?

M
--
Mark Murray
iumop ap!sdn w,I idlaH

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?200302031119.h13BJHaX058897>