dasmig-core 1.2.0
Shared random engine, distributions and data tiers for the dasmig generator libraries
Loading...
Searching...
No Matches
dasmig::core::splitmix64 Class Reference

The SplitMix64 generator (Steele, Lea and Flood 2014). More...

#include <rng.hpp>

Public Member Functions

constexpr splitmix64 (std::uint64_t seed) noexcept
 Construct from a seed.
 
constexpr std::uint64_t operator() () noexcept
 Advance and return the next value.
 

Detailed Description

The SplitMix64 generator (Steele, Lea and Flood 2014).

Used to expand a 64-bit seed into the 256-bit xoshiro state, as the xoshiro authors recommend.

Definition at line 40 of file rng.hpp.

Constructor & Destructor Documentation

◆ splitmix64()

constexpr dasmig::core::splitmix64::splitmix64 ( std::uint64_t  seed)
inlineexplicitconstexprnoexcept

Construct from a seed.

Parameters
seedInitial state.

Definition at line 45 of file rng.hpp.

Member Function Documentation

◆ operator()()

constexpr std::uint64_t dasmig::core::splitmix64::operator() ( )
inlineconstexprnoexcept

Advance and return the next value.

Returns
The next 64-bit value.

Definition at line 49 of file rng.hpp.


The documentation for this class was generated from the following file: