module SecureRandom

Constants

BASE36_ALPHABET
BASE58_ALPHABET

Public Class Methods

base36(n = 16) click to toggle source
# File lib/active_support/core_ext/securerandom.rb, line 45
def self.base36(n = 16)
  SecureRandom.alphanumeric(n, chars: BASE36_ALPHABET)
end
base58(n = 16) click to toggle source
# File lib/active_support/core_ext/securerandom.rb, line 20
def self.base58(n = 16)
  SecureRandom.alphanumeric(n, chars: BASE58_ALPHABET)
end