Hacker News new | ask | show | jobs
by amenghra 3237 days ago
You can use "simpler tools", such as `head -c 20 /dev/urandom | sha1`.

If head behaved differently when piped, you would probably know about that because it's a common thing to do.