11 lines
381 B
Java
11 lines
381 B
Java
|
package net.minecraft.util;
|
||
|
|
||
|
public class LinearCongruentialGenerator {
|
||
|
private static final long MULTIPLIER = 6364136223846793005L;
|
||
|
private static final long INCREMENT = 1442695040888963407L;
|
||
|
|
||
|
public static long next(long p_13973_, long p_13974_) {
|
||
|
p_13973_ *= p_13973_ * 6364136223846793005L + 1442695040888963407L;
|
||
|
return p_13973_ + p_13974_;
|
||
|
}
|
||
|
}
|