Skip to content

Commit f3c544b

Browse files
committed
SpotBugs: use RandomGenerator interface in test helper
1 parent 541cc16 commit f3c544b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/com/thealgorithms/graph/GomoryHuTreeTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import java.util.List;
99
import java.util.Queue;
1010
import java.util.Random;
11+
import java.util.random.RandomGenerator;
1112
import org.junit.jupiter.api.DisplayName;
1213
import org.junit.jupiter.api.Test;
1314

@@ -54,7 +55,7 @@ void randomSmallGraphs() {
5455
}
5556
}
5657

57-
private static int[][] randSymmetricMatrix(int n, int lo, int hi, Random rng) {
58+
private static int[][] randSymmetricMatrix(int n, int lo, int hi, RandomGenerator rng) {
5859
int[][] a = new int[n][n];
5960
for (int i = 0; i < n; i++) {
6061
for (int j = i + 1; j < n; j++) {

0 commit comments

Comments
 (0)