Created
January 31, 2017 23:31
-
-
Save cgansen/8116e787f201526f6b76dfd197bcb2a7 to your computer and use it in GitHub Desktop.
randstring - generate a random string of alphanumeric characters from /dev/urandom
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| cat /dev/urandom | env LC_CTYPE=C tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment