1
/* Copyright (C) 2003 MySQL AB
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation; version 2 of the License.
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
GNU General Public License for more details.
12
You should have received a copy of the GNU General Public License
13
along with this program; if not, write to the Free Software
14
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
19
/***************************************************************
20
* I N C L U D E D F I L E S *
21
***************************************************************/
23
/***************************************************************
25
***************************************************************/
27
/***************************************************************/
28
/* C O N S T A N T S */
29
/***************************************************************/
32
/***************************************************************
33
* D A T A S T R U C T U R E S *
34
***************************************************************/
39
unsigned int currentIndex;
47
/***************************************************************
48
* P U B L I C F U N C T I O N S *
49
***************************************************************/
56
extern double getTps(unsigned int count, double timeValue);
58
/*----------------------------*/
59
/* Random Sequences Functions */
60
/*----------------------------*/
61
extern int initSequence(RandomSequence *seq, SequenceValues *inputValues);
62
extern unsigned int getNextRandom(RandomSequence *seq);
63
extern void printSequence(RandomSequence *seq, unsigned int numPerRow);
65
/*---------------------------------------------------*/
66
/* Code from the glibc, to make sure the same random */
67
/* number generator is used by all */
68
/*---------------------------------------------------*/
69
extern void myRandom48Init(long int seedval);
70
extern long int myRandom48(unsigned int maxValue);
76
/***************************************************************
77
* E X T E R N A L D A T A *
78
***************************************************************/