Created
February 9, 2016 14:42
-
-
Save AleksandrMihhailov/b3ff9cf4bee2aab86638 to your computer and use it in GitHub Desktop.
This file contains 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
require "securerandom" | |
puts 'Enter prefix: ' | |
prefix = gets.chomp | |
p "mb_#{prefix}_" + SecureRandom.urlsafe_base64(nil, true) + SecureRandom.urlsafe_base64(nil, true) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment