4 ms·
for i in ["".join(random.choice(wordlist) for x in range(5)) for y in range(20)]: print (i)
by Pristina 8y ago
for i in ["".join(random.choice(wordlist) for x in range(5)) for y in range(20)]:
print (i)
- minitech 8y agoUse 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