Jobrocket
jobrocket::detail::xoroshiro128 Struct Reference

#include <RNG.hpp>

Overview

A fast random number generating object that uses the Xoroshiro128+ algorithm.

Public Member Functions

 xoroshiro128 (const uint64_t seed_a, const uint64_t seed_b)
 
uint64_t next ()
 Gets the next random number. More...
 
void jump ()
 

Constructor & Destructor Documentation

◆ xoroshiro128()

jobrocket::detail::xoroshiro128::xoroshiro128 ( const uint64_t  seed_a,
const uint64_t  seed_b 
)
inline

Member Function Documentation

◆ jump()

void jobrocket::detail::xoroshiro128::jump ( )
inline

The jump function for the generator. It is equivalent to 2^64 calls to next(); it can be used to generate 2^64 non-overlapping subsequences for parallel computations.

◆ next()

uint64_t jobrocket::detail::xoroshiro128::next ( )
inline

Gets the next random number.