Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Feb 2003 01:01:28 +0300
From:      "Andrey A. Chernov" <ache@nagual.pp.ru>
To:        Mark Murray <mark@grondar.org>
Cc:        Bakul Shah <bakul@bitblocks.com>, current@FreeBSD.ORG
Subject:   Re: rand() is broken
Message-ID:  <20030202220128.GC68356@nagual.pp.ru>
In-Reply-To: <200302022123.h12LNhaX051805@grimreaper.grondar.org>
References:  <200302022057.PAA26422@tonnant.cnchost.com> <200302022123.h12LNhaX051805@grimreaper.grondar.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Feb 02, 2003 at 21:23:43 +0000, Mark Murray wrote:
> 
> That was random(9). KERNEL random().

KERNEL random() can be easily implemented (better - replaced) with
arc4random(), there is no objections. But...

1) Implementing random(3) with RC4 is not needed, its algorithm is 
already equal or better.
2) Implementing rand(3) with RC4 can be possible only if seed (i.e. 
state) can be stored in single word (due to rand_r()) restrictions.

-- 
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?20030202220128.GC68356>