Documentation ¶
Overview ¶
Package splitmix64 implements a 64 bit SplittableRandom PRNG.
This is a fixed-increment version of Java 8's SplittableRandom generator.
Period: 2^64. State size: 64 bits.
See http://dx.doi.org/10.1145/2714064.2660195 and http://docs.oracle.com/javase/8/docs/api/java/util/SplittableRandom.html
It is a very fast generator passing BigCrush. It is used in the xoroshiro128+ and xorshift1024* generators to initialize their state arrays.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rng ¶
type Rng struct {
State uint64 // Internal state value
}
Rng encapsulates a splitmix64 PRNG. The State value is exported so that the generator can be initialized and seeded in a single line of code:
rng := splitmix64.Rng{seed} // is equivalent to rng := splitmix64.Rng{} rng.Seed(int64(seed))
Click to show internal directories.
Click to hide internal directories.