seed random() with urandom

This commit is contained in:
urlbot
2015-08-30 10:05:14 +02:00
parent 56a924c216
commit 12b851a1b8
3 changed files with 5 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ if '__main__' == __name__:
print('''this is a library file, which is not meant to be executed''')
exit(-1)
import sys, time, pickle, os, logging
import sys, time, pickle, os, logging, random
from local_config import conf
RATE_GLOBAL = 0x01
@@ -29,6 +29,8 @@ logging.basicConfig(
log = logging.getLogger()
log.plugin = log.info # ... probably fix this sometime (FIXME)
random.seed(os.urandom(8))
def debug_enabled():
# return True
return False