Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Feb 2003 15:32:32 +0000
From:      Mark Murray <mark@grondar.org>
To:        "Jeroen C. van Gelderen" <jeroen@vangelderen.org>
Cc:        phk@FreeBSD.ORG, current@FreeBSD.ORG
Subject:   Re: rand() is broken 
Message-ID:  <200302021532.h12FWWaX047973@grimreaper.grondar.org>
In-Reply-To: Your message of "Sun, 02 Feb 2003 14:26:41 %2B0100." <F76A9070-36B1-11D7-A58F-000393754B1C@vangelderen.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
"Jeroen C. van Gelderen" writes:
> Wouldn't it be a good idea to change the name at the same time? Or 
> should it be retained for compatibility reasons with other BSDs?
> 
> Currently the name needlessly exposes implementation detail. Callers 
> expect good, cheap, non-blocking randomness but don't give a hoot if 
> that is actually provided trough use of RC4 or not. I see no reason why 
> the implementation could be changed if the contract is maintained.

Good point. We can re-implement random() internally with arc4rand().

Objections?

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?200302021532.h12FWWaX047973>