Skip to content
This repository was archived by the owner on Jun 12, 2021. It is now read-only.

Commit 0621a30

Browse files
committed
No Cryptodome dependency.
1 parent 7eadfd4 commit 0621a30

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/test_33_pkce.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33
import os
44
import string
55

6+
try:
7+
import random.SystemRandom as rnd
8+
except ImportError:
9+
import random as rnd
10+
611
import pytest
712
import yaml
8-
from Cryptodome.Random import random
913
from cryptojwt.utils import b64e
1014
from oidcendpoint.cookie import CookieDealer
1115
from oidcendpoint.endpoint_context import EndpointContext
@@ -106,7 +110,7 @@ def full_path(local_file):
106110

107111

108112
def unreserved(size=64):
109-
return "".join([random.choice(BASECH) for _ in range(size)])
113+
return "".join(rnd.choice(BASECH) for _ in range(size))
110114

111115

112116
def _code_challenge():

0 commit comments

Comments
 (0)