Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ruby/securerandom] adding SecureRandom.numeric #10793

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

timoschilling
Copy link
Contributor

At the moment if you want a random string out of numbers you need to write:

.alphanumeric(10, chars: [*'0'..'9'])

which this change you can simply write:

.numeric(10)

@nobu nobu changed the title [ruby/securerandom] adding SecureRandom.nummeric [ruby/securerandom] adding SecureRandom.numeric May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant