tlds
Transactional Operations for Linked Data Structures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
random.h File Reference
#include "mt19937ar.h"
Include dependency graph for random.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  random
 

Macros

#define RANDOM_DEFAULT_SEED   (0)
 
#define PRANDOM_ALLOC()   Prandom_alloc()
 
#define PRANDOM_FREE(r)   Prandom_free(r)
 
#define PRANDOM_SEED(r, s)   random_seed(r, s)
 
#define PRANDOM_GENERATE(r)   random_generate(r)
 

Typedefs

typedef struct random random_t
 

Functions

random_trandom_alloc ()
 
random_tPrandom_alloc ()
 
void random_free (random_t *randomPtr)
 
void Prandom_free (random_t *randomPtr)
 
void random_seed (random_t *randomPtr, unsigned long seed)
 
unsigned long random_generate (random_t *randomPtr)
 

Macro Definition Documentation

#define PRANDOM_ALLOC ( )    Prandom_alloc()
#define PRANDOM_FREE (   r)    Prandom_free(r)
#define PRANDOM_GENERATE (   r)    random_generate(r)
#define PRANDOM_SEED (   r,
 
)    random_seed(r, s)
#define RANDOM_DEFAULT_SEED   (0)

Typedef Documentation

typedef struct random random_t

Function Documentation

random_t* Prandom_alloc ( )

Here is the call graph for this function:

void Prandom_free ( random_t randomPtr)
random_t* random_alloc ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void random_free ( random_t randomPtr)

Here is the caller graph for this function:

unsigned long random_generate ( random_t randomPtr)

Here is the call graph for this function:

Here is the caller graph for this function:

void random_seed ( random_t randomPtr,
unsigned long  seed 
)

Here is the call graph for this function:

Here is the caller graph for this function: