From 6c087a278d7aa0b391bea0c0c938e984b7fae8dc Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Wed, 5 Mar 2025 08:38:07 +0700 Subject: [PATCH] Don't store seed since it is of no use --- src/main/kotlin/ru/dbotthepony/mc/otm/core/util/CMWCRandom.kt | 4 ---- 1 file changed, 4 deletions(-) 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 e21285761..a41a68b54 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 @@ -13,15 +13,11 @@ class CMWCRandom(seed: Long = System.nanoTime()) : RandomGenerator, RandomSource private var stateIndex = 0 private val gaussian = MarsagliaPolarGaussian(this) - var seed: Long = seed - private set - init { setSeed(seed) } override fun setSeed(seed: Long) { - this.seed = seed val rng = LCG64Random(seed) // init state with regular LCG produced values