class RandomNumberGenerator
Declaration
class RandomNumberGenerator { /* full declaration omitted */ };
Description
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.
Declared at: llvm/include/llvm/Support/RandomNumberGenerator.h:32
Member Variables
- private llvm::RandomNumberGenerator::generator_type Generator
Method Overview
- private RandomNumberGenerator(llvm::StringRef Salt)
- private RandomNumberGenerator(const llvm::RandomNumberGenerator & other)
- public static constexpr llvm::RandomNumberGenerator::result_type max()
- public static constexpr llvm::RandomNumberGenerator::result_type min()
Methods
¶RandomNumberGenerator(llvm::StringRef Salt)
RandomNumberGenerator(llvm::StringRef Salt)
Description
Seeds and salts the underlying RNG engine. This constructor should not be used directly. Instead use Module::createRNG to create a new RNG salted with the Module ID.
Declared at: llvm/include/llvm/Support/RandomNumberGenerator.h:54
Parameters
- llvm::StringRef Salt
¶RandomNumberGenerator(
const llvm::RandomNumberGenerator& other)
RandomNumberGenerator(
const llvm::RandomNumberGenerator& other)
Declared at: llvm/include/llvm/Support/RandomNumberGenerator.h:59
Parameters
- const llvm::RandomNumberGenerator& other
¶static constexpr llvm::RandomNumberGenerator::
result_type
max()
static constexpr llvm::RandomNumberGenerator::
result_type
max()
Declared at: llvm/include/llvm/Support/RandomNumberGenerator.h:47
¶static constexpr llvm::RandomNumberGenerator::
result_type
min()
static constexpr llvm::RandomNumberGenerator::
result_type
min()
Declared at: llvm/include/llvm/Support/RandomNumberGenerator.h:46