32 #ifndef DRand48Engine_h
33 #define DRand48Engine_h 1
35 #include "StGlobals.hh"
36 #include "RandomEngine.h"
46 unsigned short int X[3];
47 unsigned short int a[3];
49 unsigned short int old_X[3];
54 extern "C" {
int drand48_iterate (
unsigned short int xsubi[3],
55 struct drand48_data *buffer); }
58 extern "C" {
int drand48_r (
struct drand48_data *buffer,
double *result); }
59 extern "C" {
int erand48_r (
unsigned short int xsubi[3],
60 struct drand48_data *buffer,
double *result); }
63 extern "C" {
int srand48_r (
long seedval,
struct drand48_data *buffer); }
64 extern "C" {
int seed48_r (
unsigned short int seed16v[3],
65 struct drand48_data *buffer); }
68 extern "C" {
double drand48 (
void); }
69 extern "C" {
double erand48 (
unsigned short int xsubi[3]); }
72 extern "C" {
void srand48 (
long seedval); }
73 extern "C" {
unsigned short int *seed48 (
unsigned short int seed16v[3]); }
98 void flatArray (
const HepInt size, HepDouble* vect);
99 #ifndef ST_NO_TEMPLATE_DEF_ARGS
100 void flatArray (vector<HepDouble>&);
102 void flatArray (vector<HepDouble, allocator<HepDouble> >&);
106 void setSeed(
long seed, HepInt dum=0);
109 void setSeeds(
const long * seeds, HepInt dum=0);
113 void saveStatus()
const;
116 void restoreStatus();
120 void showStatus()
const;