www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/11/15:18:15

From: Link Hochnadel <lhochnadel AT hns DOT com>
Newsgroups: comp.os.msdos.programmer,comp.os.msdos.djgpp
Subject: Re: Uptime and entropy in DOS
Date: Fri, 11 Feb 2000 12:21:16 -0500
Organization: Hughes Network Systems
Lines: 18
Message-ID: <38A4450C.31C58BC@hns.com>
References: <lra6ascbh1fu2d4738d44h09kpooc8ecta AT 4ax DOT com> <38A420E4 DOT 27CA35B2 AT americasm01 DOT nt DOT com>
NNTP-Posting-Host: tes5.hns.com
Mime-Version: 1.0
X-Mailer: Mozilla 4.61 [en] (X11; U; HP-UX B.10.20 9000/715)
X-Accept-Language: en, de, es
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Campbell, Rolf [SKY:1U32:EXCH]" wrote:
> 
> 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?
> 

Flip the bits end-to-end, then multiply both values to get 64 bits.


-- 
|=*=/=*=/=*=/=*=/=*=/=*=/=*=/=*=/=*=/=*=/=*=/=*=/=*=/=*=/=*=/=*=/=*=|
| Link Hochnadel 
| Opinions expressed are not necessarily those of anybody else ...
|=*=/=*=/=*=/=*=/=*=/=*=/=*=/=*=/=*=/=*=/=*=/=*=/=*=/=*=/=*=/=*=/=*=|

- Raw text -


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