We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae7e3b2 commit 2c1a957Copy full SHA for 2c1a957
src/main/java/com/thealgorithms/maths/Prime/EulerPseudoprime.java
@@ -1,7 +1,7 @@
1
package com.thealgorithms.maths.Prime;
2
3
import java.math.BigInteger;
4
-import java.security.SecureRandom;
+import java.util.Random;
5
6
/**
7
* The {@code EulerPseudoprime} class implements the Euler primality test.
@@ -18,9 +18,10 @@
18
public class EulerPseudoprime {
19
20
private EulerPseudoprime() {
21
+ // Private constructor to prevent instantiation.
22
}
23
- private static final SecureRandom random = new SecureRandom();
24
+ private static final Random random = new Random(1);
25
26
27
* Performs the Euler primality test for a given number.
0 commit comments