From 23d305bf152c0fa7eba0644b5e633140a7f5a8e6 Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Mon, 2 Aug 2021 19:48:15 +0300 Subject: [PATCH] Mark random.uniform() in manager for skipping by bandit --- minode/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minode/manager.py b/minode/manager.py index 959c8a3..911a708 100644 --- a/minode/manager.py +++ b/minode/manager.py @@ -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: