Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
Ase::Mwc256 Class Reference

Marsaglia multiply-with-carry generator, period ca 2^255. More...

#include "randomhash.hh"

Public Member Functions

Mwc256 clone192 ()
 
Mwc256 clone128 ()
 
uint64_t next ()
 
void seed ()
 
void seed (uint64_t x, uint64_t y=0, uint64_t z=0, uint64_t c=1)
 
 Mwc256 (uint64_t x, uint64_t y=0, uint64_t z=0, uint64_t c=1)
 
 Mwc256 (const Mwc256 &)=default
 
Mwc256operator= (const Mwc256 &)=default
 

Static Public Attributes

static constexpr uint64_t MWC_A3
 

Detailed Description

Marsaglia multiply-with-carry generator, period ca 2^255.

Definition at line 37 of file randomhash.hh.

Constructor & Destructor Documentation

◆ Mwc256() [1/2]

Ase::Mwc256::Mwc256 ( uint64_t  x,
uint64_t  y = 0,
uint64_t  z = 0,
uint64_t  c = 1 
)
explicit

Definition at line 699 of file randomhash.cc.

◆ Mwc256() [2/2]

Ase::Mwc256::Mwc256 ( )
explicit

Definition at line 704 of file randomhash.cc.

Member Function Documentation

◆ clone128()

Mwc256 Ase::Mwc256::clone128 ( )

Definition at line 805 of file randomhash.cc.

◆ clone192()

Mwc256 Ase::Mwc256::clone192 ( )

Definition at line 819 of file randomhash.cc.

◆ next()

uint64_t Ase::Mwc256::next ( )

Definition at line 54 of file randomhash.hh.

◆ seed() [1/2]

void Ase::Mwc256::seed ( )

Definition at line 710 of file randomhash.cc.

◆ seed() [2/2]

void Ase::Mwc256::seed ( uint64_t  x,
uint64_t  y = 0,
uint64_t  z = 0,
uint64_t  c = 1 
)

Definition at line 716 of file randomhash.cc.

Member Data Documentation

◆ MWC_A3

constexpr uint64_t Ase::Mwc256::MWC_A3
staticconstexpr

Definition at line 41 of file randomhash.hh.


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