4 ms·
Use secrets.choice instead of random.choice, since only the former is backed by a CSPRNG.
by minitech 8y ago
Use secrets.choice instead of random.choice, since only the former is backed by a CSPRNG.
- aepiepaey 8y agoOr random.SytemRandom().choice if the secrets module is not available.
- raverbashing 8y agoYou can always open /dev/random and read bytes from there as well