Don't store seed since it is of no use
This commit is contained in:
parent
e03d9b1a74
commit
6c087a278d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user