From: Eli Zaretskii 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: NNTP-Posting-Host: ras1-p79.rvt.netvision.net.il Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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).