Skip to content
New issue

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

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

Already on GitHub? # to your account

[#976] Handles zero as max for rand #978

Merged
merged 1 commit into from
Jul 12, 2017
Merged

[#976] Handles zero as max for rand #978

merged 1 commit into from
Jul 12, 2017

Conversation

gssbzn
Copy link
Contributor

@gssbzn gssbzn commented Jul 11, 2017

Improve Faker::Base.rand to handle zero (0) as max value and restore
documented behaviour for some methods that depend on it

Closes #976

Notes:
Could not restore Kernel.rand behavior since now there're a couple of Fakers depending on Random::DEFAULT behavior (Bitcoin being one). I had to handle this internally on the Faker::Base.rand.
Any suggestion is welcome

Improve `Faker::Base.rand` to handle zero (0) as max value and restore
documented behaviour for some methods that depend on it

Closes #976
@stympy stympy merged commit 395c67f into faker-ruby:master Jul 12, 2017
landongrindheim pushed a commit to landongrindheim/faker that referenced this pull request Oct 7, 2017
Improve `Faker::Base.rand` to handle zero (0) as max value and restore
documented behaviour for some methods that depend on it

Closes faker-ruby#976
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants