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

Use Random.new instead of Random::DEFAULT #2226

Merged
merged 1 commit into from
Jan 5, 2021

Conversation

connorshea
Copy link
Member

Issue#

Fixes #2225.

Description:

Random::DEFAULT is deprecated in Ruby 3.0. This replaces it with Random.new, which should be equivalent and backwards compatible with 2.5 and above.

Random::DEFAULT is deprecated in Ruby 3.0.

Fixes faker-ruby#2225.
@connorshea
Copy link
Member Author

ruby head is failing because it's on 3.1 now and minitest is locked to <3.1, so I don't think it should block this change.

@koic koic merged commit fc11a0d into faker-ruby:master Jan 5, 2021
@koic
Copy link
Member

koic commented Jan 5, 2021

That makes sense 🌟

This was referenced Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Random::DEFAULT is deprecated on Ruby 3
2 participants