Cryptographically random numbers
fakeaddress at nowhere.org
Tue Mar 7 06:04:52 CET 2006
> Ahh, you are correct, that is a large bug... How about this one?
Much better. Do note the comments from Emile van Sebille and Paul
Rubin. There are some minor style and efficiency points, but it
Incidentally, as of Python 2.4, the standard library offers
random.SystemRandom, which will generate integers in any desired
range using os.urandom as the entropy source.
More information about the Python-list