From d31897853535d7e54bea8f8c8af6f2e5a49e0cbd Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 18 Sep 2018 21:56:31 -0500 Subject: [PATCH] Seed RNG, increase max wait interval --- tootbot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tootbot.py b/tootbot.py index 3bfb790..1239cfd 100755 --- a/tootbot.py +++ b/tootbot.py @@ -16,7 +16,8 @@ if len(sys.argv) < 4: print("Usage: python3 tootbot.py twitter_account mastodon_login mastodon_passwd mastodon_instance") sys.exit(1) -sleep_time = random.randint(0, 5 * 60) +random.seed() +sleep_time = random.randint(0, 10 * 60) time.sleep(sleep_time) # sqlite db to store processed tweets (and corresponding toots ids)