We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3526ec4 commit 29b3cf9Copy full SHA for 29b3cf9
mwclient/client.py
@@ -43,7 +43,7 @@ def parse_timestamp(t):
43
class WaitToken(object):
44
45
def __init__(self):
46
- self.id = '%x' % random.randint(0, sys.maxint)
+ self.id = '%032x' % random.getrandbits(128)
47
48
def __hash__(self):
49
return hash(self.id)
0 commit comments