Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Feb 2003 10:55:42 +0000
From:      Mark Murray <mark@grondar.org>
To:        "Andrey A. Chernov" <ache@nagual.pp.ru>
Cc:        Kris Kennaway <kris@obsecurity.org>, Tim Robbins <tjr@FreeBSD.ORG>, current@FreeBSD.ORG
Subject:   Re: Final fix for 0 problem (was Re: rand() is broken) 
Message-ID:  <200302031055.h13AtgaX058602@grimreaper.grondar.org>
In-Reply-To: Your message of "Mon, 03 Feb 2003 01:26:36 %2B0300." <20030202222635.GA68806@nagual.pp.ru> 

next in thread | previous in thread | raw e-mail | index | archive | help
"Andrey A. Chernov" writes:
> > If I understand correctly, this still doesn't solve the problem,
> > because any PRNG sequence that hits the "magic" value will still get
> > stuck there forever.
> 
> It was true for the first patch I post which just move problem to another=
>
> place (this is commonly spreaded method for this PRNG).
> 
> It is false for the last patch I post which not stuck with any given seed.

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?

Will it recur after 5 iterations? 100? 1000? 1000000?

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?200302031055.h13AtgaX058602>