Mail Archives: djgpp/1998/03/27/05:40:59
Hans-Bernhard Broeker wrote:
> > Does somebody know how to take care of getting a different value each
> > time you run a program, no matter how often in a single second you start
> > it ?
>
> That target is absolutely impossible to reach, I think. Reason: time()
> counts seconds (in DJGPP), and is 32 bits wide. The srandom argument
> is also a 32 bit number.
Can we somehow use the value of IP register combined with the time element to
set a better seed and unpredictable sequences of random numbers?
---
Noam Rotem
- Raw text -