Message-Id: <200004251736.NAA26252@delorie.com> From: "Dieter Buerssner" To: djgpp-workers AT delorie DOT com Date: Tue, 25 Apr 2000 20:41:32 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: rand() in libc In-reply-to: <200004251513.LAA07262@envy.delorie.com> References: <200004251246 DOT IAA11271 AT delorie DOT com> (buers AT gmx DOT de) X-mailer: Pegasus Mail for Win32 (v3.12b) Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 25 Apr 00, at 11:13, DJ Delorie wrote: > Do you have URLs for the tests you reference? I found http://stat.fsu.edu/~geo/diehard.html in some old files. For quick testing, write 3e6 32 bit random numbers in binary to a file. (The 31 bit random numbers of DJGPP must be shifted 1 to the left, because diehard/diequick needs a random msb) Then run diequick. Ignore results about the lsb. Any p-values close to one or close to zero are suspect. P-values very close (say 1e-5) to one or zero are failures. My extended suite is not available. (There may be some legal issues.) I can send logs, if anybody is interested. Logfiles (without verbose output) are about 80k for each PRNG, so I will send them directly to interested people. I do have logs for random, djgpp 2.03 rand(), the modified rand() with the 32 bit shift and the MWC RNG I suggested.