Mark random.uniform() in manager for skipping by bandit
This commit is contained in:
parent
f5ea771ed6
commit
23d305bf15
|
@ -23,7 +23,7 @@ class Manager(threading.Thread):
|
||||||
self.last_pickled_nodes = time.time()
|
self.last_pickled_nodes = time.time()
|
||||||
# Publish destination 5-15 minutes after start
|
# Publish destination 5-15 minutes after start
|
||||||
self.last_published_i2p_destination = \
|
self.last_published_i2p_destination = \
|
||||||
time.time() - 50 * 60 + random.uniform(-1, 1) * 300
|
time.time() - 50 * 60 + random.uniform(-1, 1) * 300 # nosec
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
while True:
|
while True:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user