public final class SplitMix64Seed extends Object
SplittableRandom (this implementation uses a mixing
function which is different from the one used in SplittableRandom.| Modifier and Type | Method and Description |
|---|---|
static long |
seed()
Returns a statistically good long random seed.
|
static long[] |
seed(int numLongs)
Returns a statistically good long[] random seed array.
|
static long |
seed(long seed)
Computes a deterministic seed value from a given value.
|
static long |
seed(long[] seed)
Computes a deterministic seed value from a given sequence of seed values.
|
public static long seed()
public static long[] seed(int numLongs)
numLongs - length (>= 0) of the seed arraypublic static long seed(long seed)
seed - the seed to start withpublic static long seed(long[] seed)
seed - the sequence of seed values to start withCopyright © 2022. All rights reserved.