Why the cryptographically secure random generator requirement? #1770
-
In this document, it says that the loop variable must be generated using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'm assuming it was just used because it's a convenient way to generate random strings with a low risk of generating the same string twice. If you wanted to use the |
Beta Was this translation helpful? Give feedback.
I'm assuming it was just used because it's a convenient way to generate random strings with a low risk of generating the same string twice. If you wanted to use the
random
module instead, you'd need something a lot longer, like maybe''.join(random.choices(string.ascii_uppercase + string.digits, k=16))
(from this answer)