Skip to content

Commit 2c1a957

Browse files
committed
refactor: use fixed seed
1 parent ae7e3b2 commit 2c1a957

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/thealgorithms/maths/Prime/EulerPseudoprime.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.thealgorithms.maths.Prime;
22

33
import java.math.BigInteger;
4-
import java.security.SecureRandom;
4+
import java.util.Random;
55

66
/**
77
* The {@code EulerPseudoprime} class implements the Euler primality test.
@@ -18,9 +18,10 @@
1818
public class EulerPseudoprime {
1919

2020
private EulerPseudoprime() {
21+
// Private constructor to prevent instantiation.
2122
}
2223

23-
private static final SecureRandom random = new SecureRandom();
24+
private static final Random random = new Random(1);
2425

2526
/**
2627
* Performs the Euler primality test for a given number.

0 commit comments

Comments
 (0)