Don't store seed since it is of no use

This commit is contained in:
DBotThePony 2025-03-05 08:38:07 +07:00
parent e03d9b1a74
commit 6c087a278d
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -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