Hacker News new | ask | show | jobs
by homebrewer 481 days ago
This can be improved by using a better entropy source.

  shuf -n 5 --random-source /dev/urandom /usr/share/dict/words | paste -sd ' '
1 comments

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