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 b461132 commit 642cb3eCopy full SHA for 642cb3e
tests/lib/util.py
@@ -17,7 +17,7 @@
17
18
def token_hex(nbytes=None): # type: (Optional[int]) -> str
19
size = nbytes * 2 if nbytes is not None else 64
20
- return "".join(random.choices(string.hexdigits, k=size)).lower()
+ return "".join(random.choice(string.hexdigits) for i in range(size)).lower()
21
22
23
log = logging.getLogger(__name__)
0 commit comments