18 #ifndef _DECAF_UTIL_RANDOM_H_ 19 #define _DECAF_UTIL_RANDOM_H_ 40 static unsigned long long multiplier;
45 bool haveNextNextGaussian;
50 unsigned long long seed;
55 double nextNextGaussian;
76 Random(
unsigned long long seed);
124 double nextGaussian();
161 long long nextLong();
173 virtual void nextBytes(std::vector<unsigned char>& buf);
186 virtual void nextBytes(
unsigned char* buf,
int size);
200 virtual void setSeed(
unsigned long long seed);
222 virtual int next(
int bits);
Random Value Generator which is used to generate a stream of pseudorandom numbers.
Definition: Random.h:37
#define DECAF_API
Definition: Config.h:29
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25