LinearCongruentialGenerator .java

net.minecraft.util.LinearCongruentialGenerator (class, 12 lines): members: MULTIPLIER, INCREMENT, next.

net.minecraft.utilclass12 linescommon334 B

API Surface (1)

long next(long rval, final long c)

Fields & Constants (2)

MULTIPLIER
INCREMENT

Full Source

LinearCongruentialGenerator.java12 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.util;
2
3
public class LinearCongruentialGenerator {
4
	private static final long MULTIPLIER = 6364136223846793005L;
5
	private static final long INCREMENT = 1442695040888963407L;
6
7
	public static long next(long rval, final long c) {
8
		rval *= rval * 6364136223846793005L + 1442695040888963407L;
9
		return rval + c;
10
	}
11
}
12

Decompiled Minecraft 26.3 source of LinearCongruentialGenerator (net/minecraft/util/LinearCongruentialGenerator.java) with Mojang official mappings, stored verbatim on the site.