Use proper randint. - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit 932453d1e11e635b84f5fcf0d4279ada0f2d14bf DIR parent 85900f48857793f3c924c587812e7e79971b3a03 HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Tue, 29 Aug 2023 20:40:30 +0200 Use proper randint. Diffstat: M modules/idlerpg/idlerpg-channel-se… | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/modules/idlerpg/idlerpg-channel-service.py b/modules/idlerpg/idlerpg-channel-service.py @@ -234,7 +234,7 @@ def main(args): (attacker, defender) = random.choices(list(hackers.keys()), k=2) attack(hackers, attacker, defender) elif random.randint(1, 65535) < 2000 and len(hackers) > 1: - questhackers = random.choices(list(hackers.keys()), k=random.int(1, len(hackers))) + questhackers = random.choices(list(hackers.keys()), k=random.randint(1, len(hackers))) go_on_quest(hackers, questhackers) writeout_dictfile("%s/hackers.txt" % (basepath), hackers) @@ -283,7 +283,7 @@ def main(args): argsinhackers.append(cmdarg) go_on_quest(hackers, argsinhackers) else: - questhackers = random.choices(list(hackers.keys()), k=random.int(1, len(hackers))) + questhackers = random.choices(list(hackers.keys()), k=random.randint(1, len(hackers))) go_on_quest(hackers, questhackers) elif user == "-!-":