123456789_123456789_123456789_123456789_123456789_

Module: SecureRandom

Relationships & Source Files
Defined in: activesupport/lib/active_support/core_ext/securerandom.rb

Constant Summary

Class Method Summary

Class Method Details

.base36(n = 16)

See additional method definition at line 45.

[ GitHub ]

  
# File 'activesupport/lib/active_support/core_ext/securerandom.rb', line 49

def self.base36(n = 16)
  SecureRandom.alphanumeric(n, chars: BASE36_ALPHABET)
end

.base58(n = 16)

See additional method definition at line 20.

[ GitHub ]

  
# File 'activesupport/lib/active_support/core_ext/securerandom.rb', line 24

def self.base58(n = 16)
  SecureRandom.alphanumeric(n, chars: BASE58_ALPHABET)
end