|
From: Abhijit S. <mu...@gm...> - 2003-06-19 09:03:58
|
Greets, Per. > Note that rand()%x is not a good way of generating truly random numbers. > The pseudo-random numbers generated by most implementations of rand() have > bad randomness of the low bits. On Unix, you can use /dev/rand, which generates random bytes based on user action. But in case the user doesn't do anything, the call blocks. For a continuous supply, you can use /dev/urand. ________________________________________ Abhijit Shylanath http://mudeth.tripod.com/ |