Change vote ids to be 6 chars, instead of 8

This commit is contained in:
jesopo 2019-06-17 21:39:43 +01:00
parent 133ff1c0f6
commit 37fd78ff27

View file

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