Mail Archives: djgpp/2000/02/11/14:19:05
"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?
>
> 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...
:-)), true, the first 19 bits (aprox) will be 0 if the CPU runs only one day at
400MHz. So "at least 64" can't be from here, but perhaps a combination of both
things could work.
SET
--
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Visit my home page: http://welcome.to/SetSoft or
http://www.geocities.com/SiliconValley/Vista/6552/
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
set AT ieee DOT org set-soft AT bigfoot DOT com
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013
- Raw text -