fixed random number generation in case of urandom absence

This commit is contained in:
Wojtek 2012-04-12 13:46:51 +02:00
parent 1215af30e4
commit 62ee0859bc

View File

@ -343,7 +343,7 @@ def seed():
try:
random.seed(os.urandom(64))
except NotImplementedError:
random.seed(random.random())
random.seed('%s.%s' % (time.time(), os.getpid()))
def check_is_writeable(path):