Skip to content

Instantly share code, notes, and snippets.

@jacoelho
Created January 8, 2015 10:48
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 jacoelho/699ccfeb1f4349f2c6e3 to your computer and use it in GitHub Desktop.
Save jacoelho/699ccfeb1f4349f2c6e3 to your computer and use it in GitHub Desktop.
random-password generator
function random-password {
cat /dev/urandom | env LC_ALL=C 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