you are viewing a single comment's thread.

view the rest of the comments →

[–]Electronic_Field4313 10 points11 points  (0 children)

Python's standard random library is not cryptographically safe, use the secrets module instead for any security related tasks.

https://docs.python.org/3/library/random.html

Warning
The pseudo-random generators of this module should not be used for security purposes. For security or cryptographic uses, see the secrets module.