From: "Campbell, Rolf [SKY:1U32:EXCH]" 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: NNTP-Posting-Host: wmerh0tk.ca.nortel.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 (\/)