Joined July 2013
·

Ryan MacLean

Vancouver, BC
·
·

Posted to Generate random ASCII from the shell over 1 year ago

As the above won't work by default in OSX, this might also be handy:

cat /dev/urandom | env LC_CTYPE=C tr -cd 'a-f0-9' | head -c 16 </code>

If you need a newline after the command runs (for copy/paste funtimes), try this:

echo `cat /dev/urandom | env LC_CTYPE=C tr -cd 'a-f0-9' | head -c 16`

Achievements
45 Karma
18,213 Total ProTip Views