Seed RNG, increase max wait interval

This commit is contained in:
Felix Ableitner 2018-09-18 21:56:31 -05:00 committed by GitHub
parent a9f9f5c9b5
commit d318978535
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)