global

def random_key

def random_key
  require 'securerandom'
  if RUBY_VERSION >= '1.9'
    SecureRandom.urlsafe_base64(32)
  else
    # :nocov:
    SecureRandom.hex(32)
    # :nocov:
  end
end