Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions GSSDK.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down