Skip to content

Commit

Permalink
Merge branch 'main' into new-stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan1522 authored Jan 4, 2025
2 parents 47b4f19 + 57db9ac commit a44fea9
Showing 1 changed file with 1 addition and 2 deletions.
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 a44fea9

Please sign in to comment.