Implementation of the SplitMix64 pseudorandom number generator that provides the API required for a standard uniform random bit generator, so that it can be plugged into any of the random number distributions provided by the standard library.
More...
#include <GREM/core/randomness.hpp>
|
| template<typename CharT, typename Traits> |
| std::basic_ostream< CharT, Traits > & | operator<< (std::basic_ostream< CharT, Traits > &stream, const SplitMix64Engine &engine) |
| template<typename CharT, typename Traits> |
| std::basic_istream< CharT, Traits > & | operator>> (std::basic_istream< CharT, Traits > &stream, SplitMix64Engine &engine) |
Implementation of the SplitMix64 pseudorandom number generator that provides the API required for a standard uniform random bit generator, so that it can be plugged into any of the random number distributions provided by the standard library.
This engine is mainly used for seeding the Xoroshiro128PlusPlusEngine, which should be preferred for general use.
- Warning
- This engine does not produce cryptographcially secure randomness and should therefore not be used in situations that require a CSPRNG.
- See also
- Xoroshiro128PlusPlusEngine
◆ result_type
◆ SplitMix64Engine() [1/2]
| grem::randomness::SplitMix64Engine::SplitMix64Engine |
( |
| ) |
|
|
inlineconstexprnoexcept |
◆ SplitMix64Engine() [2/2]
| grem::randomness::SplitMix64Engine::SplitMix64Engine |
( |
result_type | seedValue | ) |
|
|
inlineexplicitconstexprnoexcept |
◆ min()
| constexpr result_type grem::randomness::SplitMix64Engine::min |
( |
| ) |
|
|
inlinestaticnodiscardconstexpr |
◆ max()
| constexpr result_type grem::randomness::SplitMix64Engine::max |
( |
| ) |
|
|
inlinestaticnodiscardconstexpr |
◆ seed()
◆ operator()()
| result_type grem::randomness::SplitMix64Engine::operator() |
( |
| ) |
|
|
inlineconstexprnoexcept |
◆ discard()
| void grem::randomness::SplitMix64Engine::discard |
( |
unsigned long long | z | ) |
|
|
inlineconstexprnoexcept |
◆ operator==()
| bool grem::randomness::SplitMix64Engine::operator== |
( |
const SplitMix64Engine & | other | ) |
const |
|
inlinenodiscardconstexprnoexcept |
◆ operator<<
template<typename CharT, typename Traits>
| std::basic_ostream< CharT, Traits > & operator<< |
( |
std::basic_ostream< CharT, Traits > & | stream, |
|
|
const SplitMix64Engine & | engine ) |
|
friend |
◆ operator>>
template<typename CharT, typename Traits>
| std::basic_istream< CharT, Traits > & operator>> |
( |
std::basic_istream< CharT, Traits > & | stream, |
|
|
SplitMix64Engine & | engine ) |
|
friend |
◆ default_seed
| result_type grem::randomness::SplitMix64Engine::default_seed = 0 |
|
staticconstexpr |
The documentation for this class was generated from the following file: