This commit is contained in:
@hangga 2024-01-22 15:02:12 +07:00
parent b8d8087262
commit fd4fb49426
1 changed files with 0 additions and 6 deletions

View File

@ -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);
} }
} }