On Mon, Feb 17, 2003 at 16:40:48 +1100, Tim Robbins wrote:

> I don't think rand()
> needs a warning message like gets() &c. because it's not as dangerous.

Wait, what kind of warning __warn_references() produce? I was under 
impression that it is compile-time only.

> What I suggest instead is to remove the pathetic "insults" in rand(3)
> ("bad" random number generator, obsoleted) and add a BUGS section
> which describes the problem.

I agree. It can be done not instead only but in addition to compile 
time warning.

> I'd much prefer that rand() generated higher quality numbers, though.

Current formulae generates acceptable quality numbers. Unlike in old
variant (which generates bad quality ones), the only problem remains is
first value monotonically increased with the seed.

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

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to