Closed yonting closed 1 year ago
The random.randbytes is only included in python 3.9 so I put secrets.token_bytes to fix it for above python 3.6.
random.randbytes
secrets.token_bytes
https://docs.python.org/3/library/random.html
https://docs.python.org/3/library/secrets.html
Thanks for your contribution. We just released version 1.22 containing your improvement, as well as a specification of the required Python version (≥ 3.6).
The
random.randbytes
is only included in python 3.9 so I putsecrets.token_bytes
to fix it for above python 3.6.https://docs.python.org/3/library/random.html
https://docs.python.org/3/library/secrets.html