simplify
This commit is contained in:
parent
b8d8087262
commit
fd4fb49426
|
@ -14,11 +14,5 @@ public class SecureRandomPositiveLongUnitTest {
|
||||||
long randomPositiveLong = Math.abs(secureRandom.nextLong());
|
long randomPositiveLong = Math.abs(secureRandom.nextLong());
|
||||||
|
|
||||||
assertThat(randomPositiveLong).isPositive();
|
assertThat(randomPositiveLong).isPositive();
|
||||||
|
|
||||||
//Double pc = 1.0 / Math.pow(2, 63);
|
|
||||||
double pc = 1.0 / Long.MAX_VALUE;
|
|
||||||
System.out.printf("%.40f", pc);
|
|
||||||
|
|
||||||
assertThat(pc).isLessThan(0.00000000000000001);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue