mirror of
http://aero2k.de/t/repos/urlbot-native.git
synced 2017-09-06 15:25:38 +02:00
seed random() with urandom
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -5,7 +5,7 @@ if '__main__' == __name__:
|
||||
print('''this is a plugin file, which is not meant to be executed''')
|
||||
exit(-1)
|
||||
|
||||
import time, random, unicodedata, re, sys, urllib.request, json
|
||||
import time, unicodedata, re, sys, urllib.request, json
|
||||
import types
|
||||
import traceback
|
||||
import urllib.parse
|
||||
|
||||
Reference in New Issue
Block a user