Foundation
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Foundation::Core::XorShift128 Class Reference

#include <UUID.hpp>

Public Member Functions

 XorShift128 (uint64_t seed) noexcept
 
 XorShift128 (uint64_t s0, uint64_t s1) noexcept
 
void Reseed (uint64_t seed) noexcept
 
void Reseed (uint64_t s0, uint64_t s1) noexcept
 
uint64_t Next () noexcept
 

Private Attributes

uint64_t _x { 0x9E3779B97F4A7C15ull }
 
uint64_t _y { 0xBF58476D1CE4E5B9ull }
 
uint64_t _z { 0x94D049BB133111EBull }
 
uint64_t _w { 0xFF51AFD7ED558CCDull }
 

Constructor & Destructor Documentation

◆ XorShift128() [1/2]

Foundation::Core::XorShift128::XorShift128 ( uint64_t  seed)
inlinenoexcept

◆ XorShift128() [2/2]

Foundation::Core::XorShift128::XorShift128 ( uint64_t  s0,
uint64_t  s1 
)
inlinenoexcept

Member Function Documentation

◆ Next()

uint64_t Foundation::Core::XorShift128::Next ( )
noexcept

◆ Reseed() [1/2]

void Foundation::Core::XorShift128::Reseed ( uint64_t  s0,
uint64_t  s1 
)
noexcept

◆ Reseed() [2/2]

void Foundation::Core::XorShift128::Reseed ( uint64_t  seed)
noexcept

Member Data Documentation

◆ _w

uint64_t Foundation::Core::XorShift128::_w { 0xFF51AFD7ED558CCDull }
private

◆ _x

uint64_t Foundation::Core::XorShift128::_x { 0x9E3779B97F4A7C15ull }
private

◆ _y

uint64_t Foundation::Core::XorShift128::_y { 0xBF58476D1CE4E5B9ull }
private

◆ _z

uint64_t Foundation::Core::XorShift128::_z { 0x94D049BB133111EBull }
private

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