Skip to content

Commit e9f9909

Browse files
committed
always use random
1 parent a243611 commit e9f9909

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/test_07_jwe.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import array
33
import hashlib
44
import os
5+
import random
56
import string
67
import sys
78

@@ -35,11 +36,6 @@
3536

3637
__author__ = "rohe0002"
3738

38-
try:
39-
from random import SystemRandom as rnd
40-
except ImportError:
41-
import random as rnd
42-
4339

4440
def rndstr(size=16):
4541
"""
@@ -49,7 +45,7 @@ def rndstr(size=16):
4945
:return: string
5046
"""
5147
_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)])
5349

5450

5551
def intarr2bytes(arr):

0 commit comments

Comments
 (0)