Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Feb 2003 15:35:04 -0800
From:      "David O'Brien" <dev-null@NUXI.com>
To:        Mark Murray <mark@grondar.org>
Cc:        Bakul Shah <bakul@bitblocks.com>, current@FreeBSD.ORG
Subject:   Re: rand() is broken
Message-ID:  <20030202233504.GA33924@dragon.nuxi.com>
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
[From address modified because I don't want every message in this
thread to end up in my personal mailbox.  I'll read them in the
list, thank you very much.]

On Sun, Feb 02, 2003 at 09:23:43PM +0000, Mark Murray wrote:
> Bakul Shah writes:
> > > Since you keep talking about random(), I must conclude you're
> > > knee-jerking, since we're not discussing that function.  Please stay
> > > on-topic :-)
> > 
> > Read through the thread.  In particular see Mark's message
> > <200302021532.h12FWWaX047973@grimreaper.grondar.org> where he
> > says
> > 
> >     Good point. We can re-implement random() internally with arc4rand().
> 
> Quote it in context, please.
> 
> That was random(9). KERNEL random().
> 
> However, the argument applies equally well to rand(3) and random(3).

Please Mark, just leave rand(3) and random(3) alone -- other than to fix
the single bug Kris reported at the start of this thread.  Long-time Unix
users expect them to work as they do now.  The manpages state they are
not cryptographically random.  If someone wants a function of that type
we have a good arc4random(3).

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?20030202233504.GA33924>