Change vote ids to be 6 chars, instead of 8
This commit is contained in:
parent
133ff1c0f6
commit
37fd78ff27
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
|
|
||||||
def _random_id(self, channel):
|
def _random_id(self, channel):
|
||||||
while True:
|
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:
|
if self._get_vote(channel, vote_id) == None:
|
||||||
return vote_id
|
return vote_id
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue