28 #ifndef V8_UTILS_RANDOM_NUMBER_GENERATOR_H_
29 #define V8_UTILS_RANDOM_NUMBER_GENERATOR_H_
51 class RandomNumberGenerator
V8_FINAL {
58 RandomNumberGenerator();
95 void NextBytes(
void* buffer,
size_t buflen);
99 static const int64_t kAddend = 0xb;
103 void SetSeed(int64_t seed);
110 #endif // V8_UTILS_RANDOM_NUMBER_GENERATOR_H_
#define V8_2PART_UINT64_C(a, b)
#define V8_WARN_UNUSED_RESULT
RandomNumberGenerator(int64_t seed)
bool(* EntropySource)(unsigned char *buffer, size_t length)
V8_INLINE bool NextBool() V8_WARN_UNUSED_RESULT
V8_INLINE int NextInt() V8_WARN_UNUSED_RESULT