From fd4fb494262e60307c283cf60dca8bb2411b67e2 Mon Sep 17 00:00:00 2001 From: "@hangga" Date: Mon, 22 Jan 2024 15:02:12 +0700 Subject: [PATCH] simplify --- .../SecureRandomPositiveLongUnitTest.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core-java-modules/core-java-numbers-7/src/test/java/com/baeldung/securerandompositivelong/SecureRandomPositiveLongUnitTest.java b/core-java-modules/core-java-numbers-7/src/test/java/com/baeldung/securerandompositivelong/SecureRandomPositiveLongUnitTest.java index 79830f8a31..eea41861bb 100644 --- a/core-java-modules/core-java-numbers-7/src/test/java/com/baeldung/securerandompositivelong/SecureRandomPositiveLongUnitTest.java +++ b/core-java-modules/core-java-numbers-7/src/test/java/com/baeldung/securerandompositivelong/SecureRandomPositiveLongUnitTest.java @@ -14,11 +14,5 @@ public class SecureRandomPositiveLongUnitTest { long randomPositiveLong = Math.abs(secureRandom.nextLong()); 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); } }