6 ms·
In Linux (with the necessary packages) this shell oneliner can more or less do the same. shuf -n 5 /usr/share/dict/words
by Dibby053 2y ago
In Linux (with the necessary packages) this shell oneliner can more or less do the same.
shuf -n 5 /usr/share/dict/words
- nullc 2y agoThat dictionary normally has a lot of rather obscure/long/hard to remember stuff. If you 'reroll' until you get a password you like better you're taking an unknown hit to the entropy of the results. It's better to use a dictionary where every word is acceptable and commit yourself to taking the first result or best of two (confining the human-selection entropy loss). Though I don't have any suggestion for a suitable one that is just a wget away.
- zokier 2y ago> Though I don't have any suggestion for a suitable one that is just a wget away. EFF wordlists: https://www.eff.org/deeplinks/2016/07/new-wordlists-random-passphrases https://www.eff.org/deeplinks/2016/07/new-wordlists-random-p...
- homebrewer 2y agoThis can be improved by using a better entropy source. shuf -n 5 --random-source /dev/urandom /usr/share/dict/words | paste -sd ' '
- keepamovin 2y agoNice! But on Darwin I need to do: shuf -n 5 --random-source /dev/urandom /usr/share/dict/words | tr '\n' ' ' As paste complains about working with a pipe