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 a243611 commit e9f9909Copy full SHA for e9f9909
tests/test_07_jwe.py
@@ -2,6 +2,7 @@
2
import array
3
import hashlib
4
import os
5
+import random
6
import string
7
import sys
8
@@ -35,11 +36,6 @@
35
36
37
__author__ = "rohe0002"
38
-try:
39
- from random import SystemRandom as rnd
40
-except ImportError:
41
- import random as rnd
42
-
43
44
def rndstr(size=16):
45
"""
@@ -49,7 +45,7 @@ def rndstr(size=16):
49
:return: string
50
46
51
47
_basech = string.ascii_letters + string.digits
52
- return "".join([rnd.choice(_basech) for _ in range(size)])
48
+ return "".join([random.choice(_basech) for _ in range(size)])
53
54
55
def intarr2bytes(arr):
0 commit comments