delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/11/10:44:16

From: "Campbell, Rolf [SKY:1U32:EXCH]" <moscoop AT americasm01 DOT nt DOT com>
Newsgroups: comp.os.msdos.programmer,comp.os.msdos.djgpp
Subject: Re: Uptime and entropy in DOS
Date: Fri, 11 Feb 2000 09:47:00 -0500
Organization: Nortel Networks
Lines: 15
Message-ID: <38A420E4.27CA35B2@americasm01.nt.com>
References: <lra6ascbh1fu2d4738d44h09kpooc8ecta AT 4ax DOT com>
NNTP-Posting-Host: wmerh0tk.ca.nortel.com
Mime-Version: 1.0
X-Mailer: Mozilla 4.71 [en] (X11; I; HP-UX B.10.20 9000/785)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Damian Yerrick wrote:

> Is it possible to get the uptime of a DOS system?  I need more entropy
> than the 32 bits I get from time(NULL) to initialize a pseudorandom
> number generator.  Is there a predictable way to get at least 64 bits
> of entropy?

    On Pentium's, there is a 64-bit cycle counter, but the upper bits
will always be zero unless the machine's been running a few years...

--
(\/) Rolf Campbell (\/)



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019