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> NNTP-Posting-Host: af680.pppool.de (213.6.246.128) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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 : >On Tue, 15 Feb 2000 09:53:49 +0200 (IST), Eli Zaretskii > 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