Skip to content

Commit 9270541

Browse files
committed
Make GPXTest::readWriteRandomXXXGPX more robust.
Signed-off-by: Franz Wilhelmstötter <[email protected]>
1 parent 8ff48c1 commit 9270541

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jpx/src/test/java/io/jenetics/jpx/WayPointTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ public static WayPoint nextWayPoint(final Random random) {
9393
}
9494

9595
private static double nextDouble(final RandomGenerator random) {
96-
//final int scale = 10_000;
97-
//return random.nextInt(scale)/(double)scale;
98-
return random.nextDouble();
96+
final int scale = 1_000_000;
97+
return random.nextInt(scale)/(double)scale;
98+
//return random.nextDouble();
9999
}
100100

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

0 commit comments

Comments
 (0)