Puzzled about random initialisation

Christopher T King squirrel at WPI.EDU
Fri Jul 9 08:43:11 EDT 2004


On Fri, 9 Jul 2004, Robin Becker wrote:

> thanks for all this it makes things a lot clearer. Using time.time() makes it 
> harder, but still not impossible to guess what values could have been generated. 
>   The application should probably be using /dev/urandom to seed generators.
> 

Perhaps you could try something like time.time()*os.getpid()? This will 
give different processes starting at the same time different random seeds.




More information about the Python-list mailing list