Hacker News new | ask | show | jobs
by Dibby053 481 days ago
In Linux (with the necessary packages) this shell oneliner can more or less do the same.

    shuf -n 5 /usr/share/dict/words
2 comments

That 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.

> 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-p...

This can be improved by using a better entropy source.

  shuf -n 5 --random-source /dev/urandom /usr/share/dict/words | paste -sd ' '
Nice! 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