[12731] in Athena Bugs
[Petr Adamek: Re: decmips 7.7G: rand() ]
daemon@ATHENA.MIT.EDU (Ezra Peisach)
Thu Oct 13 08:39:02 1994
To: bugs@MIT.EDU
Date: Thu, 13 Oct 1994 08:38:56 EDT
From: Ezra Peisach <epeisach@MIT.EDU>
For the record...
------- Forwarded Message
Received: from SOUTH-STATION-ANNEX.MIT.EDU by e40-po.MIT.EDU (5.61/4.7) id AA16491; Wed, 12 Oct 94 22:48:10 EDT
Received: from E51-007-6.MIT.EDU by MIT.EDU with SMTP
id AA19664; Wed, 12 Oct 94 22:48:08 EDT
Received: by e51-007-6.MIT.EDU (5.57/4.7) id AA14848; Wed, 12 Oct 94 22:48:07 -0400
Message-Id: <9410130248.AA14848@e51-007-6.MIT.EDU>
To: epeisach@MIT.EDU
Subject: Re: decmips 7.7G: rand()
In-Reply-To: Your message of "Wed, 12 Oct 1994 20:17:03 EDT."
<9410130017.AA03946@kangaroo.mit.edu>
Date: Wed, 12 Oct 1994 22:48:06 EDT
From: Petr Adamek <adamek@MIT.EDU>
Ezra,
> The rand function is known not to produce good random numbers - at least
> for the low order bits. If you read the man page for rand, it suggests
> that random(3) should be used.
Oops. I am sorry for not reading the manpages. I thought, rather
naively, that a function required in the standard library by ANSI C
standard might be deemed a reliable one. Not so.
Thanks anyway,
Petr
------- End of Forwarded Message