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

Fix interval computation in FastSourceOfRandomness #163

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

Conversation

aoli-al
Copy link
Collaborator

@aoli-al aoli-al commented Dec 6, 2021

According to
https://github.com/pholser/junit-quickcheck/blob/master/core/src/main/java/com/pholser/junit/quickcheck/random/SourceOfRandomness.java#L257,
randomInt should return a value within the range [min, max]. However,
current implementation generates a value within the range [min, max).

According to
https://github.com/pholser/junit-quickcheck/blob/master/core/src/main/java/com/pholser/junit/quickcheck/random/SourceOfRandomness.java#L257,
`randomInt` should return a value within the range [min, max]. However,
current implementation generates a value within the range [min, max).
@rohanpadhye rohanpadhye added this to the 2.0 milestone Jan 17, 2022
@rohanpadhye rohanpadhye self-assigned this Jan 17, 2022
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.

2 participants