Skip to content

Commit

Permalink
test-arranger-53 Add someFloat and someDouble - adjusting to java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
mjureczko committed Jan 19, 2024
1 parent 8c470c8 commit 5f6173d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/ocadotechnology/gembus/test/Arranger.java
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public static float someFloat() {
* @param max exclusive
*/
public static float someFloat(float min, float max) {
return (float) ThreadLocalRandom.current().nextDouble(min, max);
return random.easyRandom.nextFloat(min, max);
}

public static double someDouble() {
Expand All @@ -277,7 +277,7 @@ public static double someDouble() {
* @param max exclusive
*/
public static double someDouble(double min, double max) {
return ThreadLocalRandom.current().nextDouble(min, max);
return random.easyRandom.nextDouble(min, max);
}

public static <T> T someFrom(Collection<T> source) {
Expand Down

0 comments on commit 5f6173d

Please sign in to comment.