public class SplitMix64 extends LongProvider
Constructor and Description |
---|
SplitMix64(long seed)
Creates a new instance.
|
SplitMix64(Long seed)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected byte[] |
getStateInternal()
Creates a snapshot of the RNG state.
|
long |
next() |
protected void |
setStateInternal(byte[] s)
Resets the RNG to the given
state . |
nextBoolean, nextInt, nextLong, resetCachedState
checkIndex, checkStateSize, composeStateInternal, extendSeed, extendSeed, fillState, fillState, restoreState, saveState, splitStateInternal, toString
public SplitMix64(long seed)
seed
- Initial seed.public SplitMix64(Long seed)
seed
- Initial seed.public long next()
protected byte[] getStateInternal()
getStateInternal
in class LongProvider
protected void setStateInternal(byte[] s)
state
.setStateInternal
in class LongProvider
s
- State (previously obtained by a call to
BaseProvider.getStateInternal()
).BaseProvider.checkStateSize(byte[],int)
Copyright © 2016–2022 The Apache Software Foundation. All rights reserved.