GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
I found an interesting little bug due to someone monkey patching Array#rand.
When running rspec --order random it would throw an error
Exception encountered: #<ArgumentError: wrong number of arguments (1 for 0)>
I know it's Faker who is monkey patching Array but it seems like an easy enough fix to just call Kernel.rand and Kernel.srand instead of relying on whatever is included at that particular point.
Using Kernel.rand instead of just rand due to injection issues
Merge pull request #514 from hexgnu/master
Use `Kernel.rand` instead of `rand` for randomization.