1995-09-20 - Why couldn’t it have been 42?

Header Data

From: Rich Salz <rsalz@osf.org>
To: cypherpunks@toad.com
Message Hash: f54cc267c9d916471aaba275afaffc689b47d5b5267e6c07dc5c99e3090bedc8
Message ID: <9509201633.AA19179@sulphur.osf.org>
Reply To: N/A
UTC Datetime: 1995-09-20 16:34:15 UTC
Raw Date: Wed, 20 Sep 95 09:34:15 PDT

Raw message

From: Rich Salz <rsalz@osf.org>
Date: Wed, 20 Sep 95 09:34:15 PDT
To: cypherpunks@toad.com
Subject: Why couldn't it have been 42?
Message-ID: <9509201633.AA19179@sulphur.osf.org>
MIME-Version: 1.0
Content-Type: text/plain


[drand48 is supposed to return a random number]

From: Arve Kjoelen <akjoele@shiva.ee.siue.edu>
To: cypherpunks@toad.com
Date: Wed, 20 Sep 1995 10:38:58 -0500

Kun Luo, one of our grad students here recently found a bug in Sun's
implementation of the drand48() function.  We reported it to Sun, and they
acknowledged the bug exists - it seemed to be the first time they had
heard of it, though.  The bug affects Sun's ANSI C compiler shipped with
SPARCWorks3.0 and consists of the following:  If you're compiling using
the -Xc flag (strict ANSI C, no SUN C compatibility extensions), the
function drand48() is BROKEN.  It ALWAYS returns the number 9.000000 ...






Thread