From 37fd78ff27721ddba2dba960046aba5773355081 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 17 Jun 2019 21:39:43 +0100 Subject: [PATCH] Change vote ids to be 6 chars, instead of 8 --- modules/vote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/vote.py b/modules/vote.py index 728c1bd5..5cccaec3 100644 --- a/modules/vote.py +++ b/modules/vote.py @@ -11,7 +11,7 @@ class Module(ModuleManager.BaseModule): def _random_id(self, channel): while True: - vote_id = binascii.hexlify(os.urandom(4)).decode("ascii") + vote_id = binascii.hexlify(os.urandom(3)).decode("ascii") if self._get_vote(channel, vote_id) == None: return vote_id