MCKL
Monte Carlo Kernel Library
Classes | Functions

Random number generating using Random123 Philox RNG. More...

Classes

struct  mckl_philox2x32
 Philox2x32 RNG state structure. More...
 
struct  mckl_philox2x32_ctr_t
 Philox2x32 counter type. More...
 
struct  mckl_philox2x32_key_t
 Philox2x32 key type. More...
 
struct  mckl_philox4x32
 Philox4x32 RNG state structure. More...
 
struct  mckl_philox4x32_ctr_t
 Philox4x32 counter type. More...
 
struct  mckl_philox4x32_key_t
 Philox4x32 key type. More...
 

Functions

static void mckl_philox2x32_gen (const mckl_philox2x32_ctr_t *ctr, const mckl_philox2x32_key_t *key, mckl_philox2x32_ctr_t *state)
 Generate Philox2x32 RNG state. More...
 
static void mckl_philox2x32_init (mckl_philox2x32 *rng, uint32_t seed)
 Initialize Philox2x32 RNG state. More...
 
static uint32_t mckl_philox2x32_rand (mckl_philox2x32 *rng)
 Generate random 32-bit integers from Philox2x32 RNG. More...
 
static void mckl_philox4x32_gen (const mckl_philox4x32_ctr_t *ctr, const mckl_philox4x32_key_t *key, mckl_philox4x32_ctr_t *state)
 Generate Philox4x32 RNG state. More...
 
static void mckl_philox4x32_init (mckl_philox4x32 *rng, uint32_t seed)
 Initialize Philox4x32 RNG state. More...
 
static uint32_t mckl_philox4x32_rand (mckl_philox4x32 *rng)
 Generate random 32-bit integers from Philox4x32 RNG. More...
 

Detailed Description

Random number generating using Random123 Philox RNG.

Function Documentation

◆ mckl_philox2x32_gen()

static void mckl_philox2x32_gen ( const mckl_philox2x32_ctr_t ctr,
const mckl_philox2x32_key_t key,
mckl_philox2x32_ctr_t state 
)
inlinestatic

Generate Philox2x32 RNG state.

Definition at line 186 of file philox.h.

◆ mckl_philox2x32_init()

static void mckl_philox2x32_init ( mckl_philox2x32 rng,
uint32_t  seed 
)
inlinestatic

Initialize Philox2x32 RNG state.

Definition at line 246 of file philox.h.

◆ mckl_philox2x32_rand()

static uint32_t mckl_philox2x32_rand ( mckl_philox2x32 rng)
inlinestatic

Generate random 32-bit integers from Philox2x32 RNG.

Definition at line 269 of file philox.h.

◆ mckl_philox4x32_gen()

static void mckl_philox4x32_gen ( const mckl_philox4x32_ctr_t ctr,
const mckl_philox4x32_key_t key,
mckl_philox4x32_ctr_t state 
)
inlinestatic

Generate Philox4x32 RNG state.

Definition at line 216 of file philox.h.

◆ mckl_philox4x32_init()

static void mckl_philox4x32_init ( mckl_philox4x32 rng,
uint32_t  seed 
)
inlinestatic

Initialize Philox4x32 RNG state.

Definition at line 256 of file philox.h.

◆ mckl_philox4x32_rand()

static uint32_t mckl_philox4x32_rand ( mckl_philox4x32 rng)
inlinestatic

Generate random 32-bit integers from Philox4x32 RNG.

Definition at line 282 of file philox.h.