www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/12/08:42:26

From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Newsgroups: comp.os.msdos.programmer,comp.os.msdos.djgpp
Subject: Re: Uptime and entropy in DOS
Date: Sat, 12 Feb 2000 14:55:24 +0200
Organization: NetVision Israel
Lines: 7
Message-ID: <38A5583C.EDF375B4@is.elta.co.il>
References: <lra6ascbh1fu2d4738d44h09kpooc8ecta AT 4ax DOT com>
NNTP-Posting-Host: ras1-p79.rvt.netvision.net.il
Mime-Version: 1.0
X-Trace: news.netvision.net.il 950360156 21805 62.0.172.81 (12 Feb 2000 12:55:56 GMT)
X-Complaints-To: abuse AT netvision DOT net DOT il
NNTP-Posting-Date: 12 Feb 2000 12:55:56 GMT
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en,ru,hebrew
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.

Did you try `uclock' or `gettiomeofday'?  It's in the FAQ (section 22.23).

- Raw text -


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