Skip to content

Instantly share code, notes, and snippets.

@yowcow
Created May 19, 2022 07:55
Show Gist options
  • Save yowcow/f1a9abad39b288adcc38d0f80c69c70a to your computer and use it in GitHub Desktop.
Save yowcow/f1a9abad39b288adcc38d0f80c69c70a to your computer and use it in GitHub Desktop.
Print random hex string
head -c 4 /dev/urandom | perl -Mfeature=say -ne 'say unpack("h*", $_);'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment