From 4eb7971717b869839ce0d9fbc075137d2193637f Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Tue, 4 Mar 2025 21:06:22 +0700 Subject: [PATCH] Further reduce internal state of CMWC (from 1024 octets / 8192 bits to just 128 octets / 1024 bits) because we don't need these insane periods --- src/main/kotlin/ru/dbotthepony/mc/otm/core/util/CMWCRandom.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/core/util/CMWCRandom.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/core/util/CMWCRandom.kt index ae291f2d1..7ec103ac8 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/core/util/CMWCRandom.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/core/util/CMWCRandom.kt @@ -109,7 +109,7 @@ class CMWCRandom(seed: Long = System.nanoTime()) : RandomGenerator, RandomSource } companion object { - const val CMWC_STATE_SIZE = 256 // 4096 + const val CMWC_STATE_SIZE = 32 // 4096 const val CMWC_CARRY_MAX = 809430660 } }