Skip to content

Instantly share code, notes, and snippets.

@vsobotka
Created February 22, 2018 15:13
Show Gist options
  • Save vsobotka/104fc6b309c3e11863898300aeebb630 to your computer and use it in GitHub Desktop.
Save vsobotka/104fc6b309c3e11863898300aeebb630 to your computer and use it in GitHub Desktop.
random-string()
{
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w ${1:-32} | head -n 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment