diff --git a/GSSDK.py b/GSSDK.py index 459b780..e33ab43 100644 --- a/GSSDK.py +++ b/GSSDK.py @@ -48,7 +48,7 @@ from json import loads from json import dumps as jsonstringify from re import search -from random import randrange +import secrets if PY_3: string_types = str @@ -226,7 +226,7 @@ def sendRequest(self, httpMethod, domain, path, params, token, secret=None, useH timestamp = calendar.timegm(time.gmtime()) # unique token - nonce = str(SigUtils.currentTimeMillis()) + str(randrange(1000)) + nonce = str(SigUtils.currentTimeMillis()) + str(secrets.randbelow(1000)) httpMethod = "POST" if userKey: