Try using os.urandom() to get the seed.
authorBob Halley <halley@nominum.com>
Thu, 12 Nov 2009 18:16:09 +0000 (03:16 +0900)
committerBob Halley <halley@nominum.com>
Thu, 12 Nov 2009 18:16:09 +0000 (03:16 +0900)
commitb37425d20991bc147932d1eddea01e1d929ceb5d
tree89e3b45031bd76416ce1a4d2bbd8a9726fe96d0e
parent0ed52292ad711521d96d84e74ae71539043906de
Try using os.urandom() to get the seed.

Lock access to the entropy pool to avoid races in multithreaded situations.

If a seed wasn't supplied, don't do the seeding operation until someone
actually wants to get random numbers.
dns/entropy.py