Skip to content

Commit

Permalink
Provide a better default lower bound
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed Oct 31, 2023
1 parent 6076bb7 commit 59f9b54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class DoubleGenerator extends AbstractGenerator<Double> {
private final double posInfFraction;

public DoubleGenerator() {
this(QueryConstants.NULL_DOUBLE + 1, Double.MAX_VALUE);
this(Math.nextUp(-Double.MAX_VALUE), Double.MAX_VALUE);
}

public DoubleGenerator(double from, double to) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class FloatGenerator extends AbstractGenerator<Float> {
private final double posInfFraction;

public FloatGenerator() {
this(QueryConstants.NULL_FLOAT + 1, Float.MAX_VALUE);
this(Math.nextUp(-Float.MAX_VALUE), Float.MAX_VALUE);
}

public FloatGenerator(float from, float to) {
Expand Down

0 comments on commit 59f9b54

Please sign in to comment.