imate
C++/CUDA Reference
|
Pseudo-random integer generator. This class generates 64-bit integer using SplitMix64 algorithm. More...
#include <split_mix_64.h>
Public Member Functions | |
SplitMix64 (const int64_t seed_) | |
Constructor. Initializes the state with current time. More... | |
uint64_t | next () |
Generates the next presudo-random number in the sequence. More... | |
Protected Attributes | |
uint64_t | state |
Pseudo-random integer generator. This class generates 64-bit integer using SplitMix64 algorithm.
The SplitMix64 algorithm is very fast but does not pass all statistical tests. This class is primarily used to initialize the states of the Xoshiro256StarStar
class.
The SplitMix64 algorithm is develped by Sebastiano Vigna (2015) and the source code is available at: https://prng.di.unimi.it/splitmix64.c
Definition at line 42 of file split_mix_64.h.
|
explicit |
Constructor. Initializes the state with current time.
Definition at line 28 of file split_mix_64.cpp.
References get_highres_time_stamp(), and state.
uint64_t SplitMix64::next | ( | ) |
Generates the next presudo-random number in the sequence.
Definition at line 57 of file split_mix_64.cpp.
References state.
Referenced by Xoshiro256StarStar::Xoshiro256StarStar().
|
protected |
Definition at line 49 of file split_mix_64.h.
Referenced by next(), and SplitMix64().