mzran.hpp File Reference
#include <stdlib.h>
#include <stdio.h>
Include dependency graph for mzran.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MZRAN_MAX_VALUE   4294967296
 
#define MZRAN_STATE_SIZE   16 /* Size of the seed buffer - in bytes. */
 

Typedefs

typedef struct mzran_struct mzran_type
 

Functions

void mzran_fscanf_state (void *__rng, FILE *stream)
 
unsigned int mzran_forward (void *__rng)
 
void * mzran_alloc (void)
 
void mzran_set_state (void *__rng, const char *seed_buffer)
 
void mzran_get_state (void *__rng, char *state_buffer)
 
double mzran_get_double (mzran_type *rng)
 
int mzran_get_int (mzran_type *rng, int max)
 
void mzran_fprintf_state (const void *__rng, FILE *stream)
 
void mzran_free (void *__rng)
 

Macro Definition Documentation

◆ MZRAN_MAX_VALUE

#define MZRAN_MAX_VALUE   4294967296

◆ MZRAN_STATE_SIZE

#define MZRAN_STATE_SIZE   16 /* Size of the seed buffer - in bytes. */

Typedef Documentation

◆ mzran_type

typedef struct mzran_struct mzran_type

Function Documentation

◆ mzran_alloc()

void * mzran_alloc ( void  )

◆ mzran_forward()

unsigned int mzran_forward ( void *  __rng)

◆ mzran_fprintf_state()

void mzran_fprintf_state ( const void *  __rng,
FILE *  stream 
)

◆ mzran_free()

void mzran_free ( void *  __rng)

◆ mzran_fscanf_state()

void mzran_fscanf_state ( void *  __rng,
FILE *  stream 
)

◆ mzran_get_double()

double mzran_get_double ( mzran_type rng)

◆ mzran_get_int()

int mzran_get_int ( mzran_type rng,
int  max 
)

◆ mzran_get_state()

void mzran_get_state ( void *  __rng,
char *  state_buffer 
)

◆ mzran_set_state()

void mzran_set_state ( void *  __rng,
const char *  seed_buffer 
)