Skip to Content Skip to Search

module SecureRandom

Constants

("0".."9").to_a + ("a".."z").to_a
("0".."9").to_a + ("A".."Z").to_a + ("a".."z").to_a - ["0", "O", "I", "l"]

Public class methods

Source code GitHub
# File activesupport/lib/active_support/core_ext/securerandom.rb, line 45
def self.base36(n = 16)
  alphanumeric(n, chars: BASE36_ALPHABET)
end
Source code GitHub
# File activesupport/lib/active_support/core_ext/securerandom.rb, line 20
def self.base58(n = 16)
  alphanumeric(n, chars: BASE58_ALPHABET)
end

Definition files