Last active
January 1, 2017 18:38
-
-
Save hectr/63236ce129c3b37f52140df8685428b6 to your computer and use it in GitHub Desktop.
Returns random string of length 32.
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 | |
################################################################################ | |
# | |
# Returns random string of length 32. | |
# | |
# Example: | |
# ./random_string | |
# | |
################################################################################ | |
date +%s | shasum | base64 | head -c 32 ; echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment