Skip to content

Instantly share code, notes, and snippets.

@AleksandrMihhailov
Created February 9, 2016 14:42
Show Gist options
  • Save AleksandrMihhailov/b3ff9cf4bee2aab86638 to your computer and use it in GitHub Desktop.
Save AleksandrMihhailov/b3ff9cf4bee2aab86638 to your computer and use it in GitHub Desktop.
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