public class JenkinsSmallFast64 extends LongProvider
The state size is 256-bits.
| Constructor and Description |
|---|
JenkinsSmallFast64(Long seed)
Creates an instance with the given seed.
|
| 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, resetCachedStatecheckIndex, checkStateSize, composeStateInternal, extendSeed, extendSeed, fillState, fillState, restoreState, saveState, splitStateInternal, toStringpublic JenkinsSmallFast64(Long seed)
seed - Initial seed.public final long next()
protected byte[] getStateInternal()
getStateInternal in class LongProviderprotected void setStateInternal(byte[] s)
state.setStateInternal in class LongProviders - State (previously obtained by a call to
BaseProvider.getStateInternal()).BaseProvider.checkStateSize(byte[],int)Copyright © 2016–2022 The Apache Software Foundation. All rights reserved.