Skip to content

Instantly share code, notes, and snippets.

@shavit
Created December 13, 2016 23:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shavit/74b9db955988d15807bd2fe18325a73c to your computer and use it in GitHub Desktop.
Save shavit/74b9db955988d15807bd2fe18325a73c to your computer and use it in GitHub Desktop.
Random string in Unix
#!/bin/sh
cat /dev/urandom | envcd 'a-f0-9' | head -c 16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment