LLVM
8.0.1
|
A random number generator. More...
#include "llvm/Support/RandomNumberGenerator.h"
Public Types | |
using | result_type = generator_type::result_type |
Public Member Functions | |
result_type | operator() () |
Returns a random number in the range [0, Max). More... | |
Static Public Member Functions | |
static constexpr result_type | min () |
static constexpr result_type | max () |
Friends | |
class | Module |
A random number generator.
Instances of this class should not be shared across threads. The seed should be set by passing the -rng-seed=<uint64> option. Use Module::createRNG to create a new RNG instance for use with that module.
Definition at line 33 of file RandomNumberGenerator.h.
using llvm::RandomNumberGenerator::result_type = generator_type::result_type |
Definition at line 42 of file RandomNumberGenerator.h.
|
inlinestatic |
Definition at line 48 of file RandomNumberGenerator.h.
References llvm::max().
|
inlinestatic |
Definition at line 47 of file RandomNumberGenerator.h.
RandomNumberGenerator::result_type RandomNumberGenerator::operator() | ( | ) |
Returns a random number in the range [0, Max).
Definition at line 58 of file RandomNumberGenerator.cpp.
|
friend |
Definition at line 63 of file RandomNumberGenerator.h.