Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1479 from finos/1478-fix-random-number-generator
Browse files Browse the repository at this point in the history
fix(#1478): random number generator to return random numbers
  • Loading branch information
cuthullu authored Oct 21, 2019
2 parents d5226be + 82df97f commit 9242f94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public BigDecimal getNext(BigDecimal value) {

@Override
public BigDecimal getRandom(BigDecimal min, BigDecimal max, RandomNumberGenerator randomNumberGenerator) {
BigDecimal value = randomNumberGenerator.nextBigDecimal(max, max);
BigDecimal value = randomNumberGenerator.nextBigDecimal(min, max);
return trimToGranularity(value);
}

Expand Down

0 comments on commit 9242f94

Please sign in to comment.