Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch to XoShiRo256++ random #2747

Merged
merged 3 commits into from
Mar 1, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/main/java/gregtech/api/GTValues.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package gregtech.api;

import gregtech.api.util.XSTR;
import gregtech.api.util.random.XoShiRo256PlusPlusRandom;
import gregtech.common.ConfigHolder;

import net.minecraftforge.fml.common.FMLCommonHandler;
Expand All @@ -10,7 +10,6 @@
import org.jetbrains.annotations.ApiStatus;

import java.time.LocalDate;
import java.util.Random;
import java.util.function.Supplier;

import static net.minecraft.util.text.TextFormatting.*;
Expand Down Expand Up @@ -45,7 +44,7 @@ public class GTValues {
*/
public static final short W = OreDictionary.WILDCARD_VALUE;

public static final Random RNG = new XSTR();
public static final XoShiRo256PlusPlusRandom RNG = new XoShiRo256PlusPlusRandom();

/** Current time on the Client. Will always be zero on the server. */
public static long CLIENT_TIME = 0;
Expand Down
241 changes: 0 additions & 241 deletions src/main/java/gregtech/api/util/XSTR.java

This file was deleted.

Loading
Loading