Skip to content

Fix interval computation in FastSourceOfRandomness#163

Open
aoli-al wants to merge 1 commit into
masterfrom
fix-FastSourceOfRandomness
Open

Fix interval computation in FastSourceOfRandomness#163
aoli-al wants to merge 1 commit into
masterfrom
fix-FastSourceOfRandomness

Conversation

@aoli-al

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

Copy link
Copy Markdown
Collaborator

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