From 72277eb71c9b333959c2c0e327c989a5087e5496 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Tue, 11 Mar 2025 17:57:09 +0700 Subject: [PATCH] Fix GJRAND64 not being avalanched upon creation --- gradle.properties | 2 +- .../java/ru/dbotthepony/mc/prng/GJRAND64RandomSource.java | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index ad167f7..967ac6b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -34,7 +34,7 @@ mod_name=Better Random # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=BSD 2 Clause # The mod version. See https://semver.org/ -mod_version=1.2.0 +mod_version=1.2.1 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html diff --git a/src/main/java/ru/dbotthepony/mc/prng/GJRAND64RandomSource.java b/src/main/java/ru/dbotthepony/mc/prng/GJRAND64RandomSource.java index 93e3792..ae884d0 100644 --- a/src/main/java/ru/dbotthepony/mc/prng/GJRAND64RandomSource.java +++ b/src/main/java/ru/dbotthepony/mc/prng/GJRAND64RandomSource.java @@ -71,6 +71,10 @@ public final class GJRAND64RandomSource implements RandomGenerator, RandomSource s1 = seed1; s2 = 2000001L; s3 = 0L; + + for (int i = 0; i < 14; i++) { + nextLong(); + } } @Override