Zero  0.1.0
Namespaces | Functions | Variables
tpcc_random.cpp File Reference

Functions used for the generation of the inputs for all the tpcc transaction. More...

#include "tpcc_random.h"
#include "tpcc_const.h"
#include "util/randgen.h"
#include "kits_thread.h"

Namespaces

 tpcc
 

Functions

int tpcc::random (int low, int high, randgen_t *rp)
 Generates a uniform random number between low and high. Not seen by public. More...
 
int tpcc::URand (int low, int high)
 Generates a uniform random number between (low) and (high) More...
 
int tpcc::NURand (int A, int low, int high)
 Generates a non-uniform random number. More...
 
int tpcc::generate_cust_last (int select, char *dest)
 
int tpcc::random_xct_type (int selected)
 

Variables

const char * tpcc::CUST_LAST [10]
 

Detailed Description

Functions used for the generation of the inputs for all the tpcc transaction.

Version
Based on TPC-C Standard Specification Revision 5.4 (Apr 2005)