4 ms·
I would be very cautious about using shuf for password generation, since it doesn't use a cryptographically-secure random number generator (I just checked the s
by eric_bullington 12y ago
I would be very cautious about using shuf for password generation, since it doesn't use a cryptographically-secure random number generator (I just checked the source).
Edit: I see that shuf permits the use of custom seeds, so you can do the following, and it will be secure:
shuf -n 5 --random-source=/dev/urandom /usr/share/dict/words