Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
SecureRandom.alphanumeric
alphanumeric(n = nil, chars: ALPHANUMERIC)
lib/securerandom.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/securerandom.rb, line 54
def alphanumeric(n = nil, chars: ALPHANUMERIC)
n = 16 if n.nil?
choose(chars, n)
end
Compatibility methods for Ruby 3.2, we can remove this after dropping to support Ruby 3.2