Skip to content

Commit

Permalink
add it back
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan1522 committed Dec 9, 2024
1 parent 6af9077 commit f711faf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This gitignore has been specially created by the WPILib team.
# If you remove items from this file, intellisense might break.
# *src/main/java/frc/robot/BuildConstants.java
*src/main/java/frc/robot/BuildConstants.java
simgui-ds.json
simgui.json
networktables.json
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/frc/robot/extras/util/MathUtil.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
package frc.robot.extras.util;

import edu.wpi.first.math.geometry.Rotation3d;
import frc.robot.BuildConstants;
import java.util.Random;

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

public static double linearInterpretationWithBounding(
double x1, double y1, double x2, double y2, double x) {
Expand Down

0 comments on commit f711faf

Please sign in to comment.