Skip to content

Commit a44fea9

Browse files
authored
Merge branch 'main' into new-stuff
2 parents 47b4f19 + 57db9ac commit a44fea9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/frc/robot/extras/util/MathUtil.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
package frc.robot.extras.util;
22

33
import edu.wpi.first.math.geometry.Rotation3d;
4-
import frc.robot.BuildConstants;
54
import java.util.Random;
65

76
public class MathUtil {
87
/**
98
* random object that generates random variables the seed is the hash of GIT_SHA this way when you
109
* do log-replay even the generated random numbers are the same
1110
*/
12-
private static final Random random = new Random(BuildConstants.GIT_SHA.hashCode());
11+
private static final Random random = new Random((long) Math.random());
1312

1413
public static double linearInterpretationWithBounding(
1514
double x1, double y1, double x2, double y2, double x) {

0 commit comments

Comments
 (0)