diff --git a/utils/shortcuts.py b/utils/shortcuts.py index f650e52..e3af916 100644 --- a/utils/shortcuts.py +++ b/utils/shortcuts.py @@ -102,5 +102,5 @@ def paginate(request, query_set, object_serializer=None): def rand_str(length=32): - string = hashlib.md5(str(time.time()) + str(random.randrange(1, 987654321234567))).hexdigest() + string = hashlib.md5(str(time.time()) + str(random.randrange(1, 987654321234567)) + str(random.randrange(1, 987654321234567))).hexdigest() return string[0:length] \ No newline at end of file