Created
September 25, 2009 08:44
-
-
Save thegengen/193414 to your computer and use it in GitHub Desktop.
generate random strings
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
>> ActiveSupport::SecureRandom.hex(10) | |
=> "8a2cf0a838e64f6f85d1" | |
>> ActiveSupport::SecureRandom.base64(10) | |
=> "fUL81hGd77YyGg==" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment