module Gem::SecureRandom

Constants

VERSION

The version

Public Class Methods

Compatibility methods for Ruby 3.2, we can remove this after dropping to support Ruby 3.2

# File lib/rubygems/vendor/securerandom/lib/securerandom.rb, line 58
def alphanumeric(n = nil, chars: ALPHANUMERIC)
  n = 16 if n.nil?
  choose(chars, n)
end

Returns a random binary string containing size bytes.

See Random.bytes

# File lib/rubygems/vendor/securerandom/lib/securerandom.rb, line 53
def bytes(n)
  return gen_random(n)
end