Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Feb 2003 01:30:43 +0300
From:      "Andrey A. Chernov" <ache@nagual.pp.ru>
To:        Mark Murray <mark@grondar.org>
Cc:        current@FreeBSD.ORG
Subject:   Re: rand() is broken
Message-ID:  <20030202223043.GB68806@nagual.pp.ru>
In-Reply-To: <200302022219.h12MJYaX052408@grimreaper.grondar.org>
References:  <20030202220128.GC68356@nagual.pp.ru> <200302022219.h12MJYaX052408@grimreaper.grondar.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Feb 02, 2003 at 22:19:33 +0000, Mark Murray wrote:

> > 1) Implementing random(3) with RC4 is not needed, its algorithm is 
> > already equal or better.
> 
> Rubbish. :-) RC4's internal state is 256 bytes. In theory, its
> cycle-of-repetition is 2^(8*256) bits.

This is comparable with random() TYPE4 which internal state is 252 bytes.

-- 
Andrey A. Chernov
http://ache.pp.ru/

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?20030202223043.GB68806>