Skip to content

Commit

Permalink
Make GPXTest::readWriteRandomXXXGPX more robust.
Browse files Browse the repository at this point in the history
Signed-off-by: Franz Wilhelmstötter <[email protected]>
  • Loading branch information
jenetics committed Nov 12, 2024
1 parent 8ff48c1 commit 9270541
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jpx/src/test/java/io/jenetics/jpx/WayPointTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ public static WayPoint nextWayPoint(final Random random) {
}

private static double nextDouble(final RandomGenerator random) {
//final int scale = 10_000;
//return random.nextInt(scale)/(double)scale;
return random.nextDouble();
final int scale = 1_000_000;
return random.nextInt(scale)/(double)scale;
//return random.nextDouble();
}

public static List<WayPoint> nextWayPoints(final Random random) {
Expand Down

0 comments on commit 9270541

Please sign in to comment.