Zero  0.1.0
Macros | Functions | Variables
random_input.cpp File Reference
#include "tls.h"
#include "util/random_input.h"

Macros

#define USE_ZIPF   1
 

Functions

 DECLARE_TLS (randgen_t, randgen_tls)
 
int URand (const int low, const int high)
 
bool URandBool ()
 
short URandShort (const short low, const short high)
 
void URandFillStrCaps (char *dest, const int sz)
 
void URandFillStrNumbx (char *dest, const int sz)
 
int ZRand (const int low, const int high)
 
void setZipf (const bool isEnabled, const double s)
 
int UZRand (const int low, const int high)
 

Variables

const char CAPS_CHAR_ARRAY [] = {"ABCDEFGHIJKLMNOPQRSTUVWXYZ"}
 
const char NUMBERS_CHAR_ARRAY [] = {"012345789"}
 
bool _g_enableZipf = false
 
double _g_ZipfS = 0.0
 

Macro Definition Documentation

§ USE_ZIPF

#define USE_ZIPF   1

Function Documentation

§ DECLARE_TLS()

DECLARE_TLS ( randgen_t  ,
randgen_tls   
)

§ setZipf()

void setZipf ( const bool  isEnabled,
const double  s 
)

§ URand()

int URand ( const int  low,
const int  high 
)

§ URandBool()

bool URandBool ( )

§ URandFillStrCaps()

void URandFillStrCaps ( char *  dest,
const int  sz 
)

§ URandFillStrNumbx()

void URandFillStrNumbx ( char *  dest,
const int  sz 
)

§ URandShort()

short URandShort ( const short  low,
const short  high 
)

§ UZRand()

int UZRand ( const int  low,
const int  high 
)

§ ZRand()

int ZRand ( const int  low,
const int  high 
)

Variable Documentation

§ _g_enableZipf

bool _g_enableZipf = false

§ _g_ZipfS

double _g_ZipfS = 0.0

§ CAPS_CHAR_ARRAY

const char CAPS_CHAR_ARRAY[] = {"ABCDEFGHIJKLMNOPQRSTUVWXYZ"}

§ NUMBERS_CHAR_ARRAY

const char NUMBERS_CHAR_ARRAY[] = {"012345789"}