delorie.com/archives/browse.cgi | search |
From: | buers AT gmx DOT de (Dieter Buerssner) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Uptime and entropy in DOS |
Date: | 15 Feb 2000 16:10:29 GMT |
Lines: | 21 |
Message-ID: | <88btpi$128uk$2@fu-berlin.de> |
References: | <38A82321 DOT 952B55DA AT americasm01 DOT nt DOT com> <Pine DOT SUN DOT 3 DOT 91 DOT 1000215095332 DOT 23996N-100000 AT is> <b2miasojmafqqmurpcb90b3pmf8fv0bs6v AT 4ax DOT com> |
NNTP-Posting-Host: | af680.pppool.de (213.6.246.128) |
Mime-Version: | 1.0 |
X-Trace: | fu-berlin.de 950631029 1123284 213.6.246.128 (16 [17104]) |
X-Posting-Agent: | Hamster/1.3.8.0 |
User-Agent: | Xnews/2.11.08 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
REPLYTOd_yerrick AT hotmail DOT comNO2CANNEDHAM (Damian Yerrick) wrote in <b2miasojmafqqmurpcb90b3pmf8fv0bs6v AT 4ax DOT com>: >On Tue, 15 Feb 2000 09:53:49 +0200 (IST), Eli Zaretskii ><eliz AT is DOT elta DOT co DOT il> wrote: >>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. [I am not sure, what you mean by seed generator] There may be a misunderstanding here. If I am not mistaken, your code is the classic (bad) implementation of rand() in BSD unices, while Eli is referring to BSD random(). Regards, Dieter
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |