delorie.com/archives/browse.cgi | search |
From: | Damian Yerrick <MYNAMEISd_yerrick AT hotmail DOT comNO2CANNEDHAM> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Uptime and entropy in DOS |
Organization: | Pin Eight Software http://pineight.8m.com/ |
Message-ID: | <b2miasojmafqqmurpcb90b3pmf8fv0bs6v@4ax.com> |
References: | <38A82321 DOT 952B55DA AT americasm01 DOT nt DOT com> <Pine DOT SUN DOT 3 DOT 91 DOT 1000215095332 DOT 23996N-100000 AT is> |
X-Newsreader: | Forte Agent 1.7/32.534 |
MIME-Version: | 1.0 |
Lines: | 30 |
X-Trace: | /ba9Qdavu0GGewSZBNBGtcByZA1XWsLZjhTPj54ZiQ+pBifLP20VjcEVBbIHyivEetZxRukQubO4!Et7cY/Jm4tk7LpoNwJi7Y84vB7ub5yDno/txENclYmj5xH+LviAMmJ89Y+nJEhpaOysVdHY+j5cO!fxPINVg= |
X-Complaints-To: | abuse AT gte DOT net |
X-Abuse-Info: | Please be sure to forward a copy of ALL headers |
X-Abuse-Info: | Otherwise we will be unable to process your complaint properly |
NNTP-Posting-Date: | Tue, 15 Feb 2000 13:47:54 GMT |
Distribution: | world |
Date: | Tue, 15 Feb 2000 13:47:55 GMT |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
On Tue, 15 Feb 2000 09:53:49 +0200 (IST), Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote: > >On Mon, 14 Feb 2000, Campbell, Rolf [SKY:1U32:EXCH] wrote: > >> > BSD random() seems to use the Apple RNG >> > x = (x * 16807) % ((2 << 31) - 1); >> > to play with the seed. >> >> I believe that algorithm is not very good at making random >> numbers. > >If this is used only to randomize the seed, then it is okay. > >But I don't see the above calculation anywhere in the sources of >`random.c', at least as it appears in DJGPP v2.03. I saw it in the FreeBSD sources. It replaces x = (x * 1103515245) + 12345; in the seed generator. -- Damian Yerrick http://yerricde.tripod.com/ Comment on story ideas: http://home1.gte.net/frodo/quickjot.html AOL is sucks! Find out why: http://anti-aol.org/faqs/aas/ View full sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your .sig to prevent the spread of .sig viruses. http://www.mcafee.com/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |