Mark random.uniform() in manager for skipping by bandit

This commit is contained in:
Dmitri Bogomolov 2021-08-02 19:48:15 +03:00
parent f5ea771ed6
commit 23d305bf15
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -23,7 +23,7 @@ class Manager(threading.Thread):
self.last_pickled_nodes = time.time()
# Publish destination 5-15 minutes after start
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):
while True: