A random number generator.
Synopsis
Declared in <llvm/Support/RandomNumberGenerator.h>
class RandomNumberGenerator;
Description
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.
Type Aliases
Name |
Description |
Type of values produced by this generator. |
Member Functions
Name |
Description |
Returns a random number in the range [0, Max).] |
Static Member Functions
Friends
Name |
Description |
Top‐level container for LLVM IR objects in a translation unit. |
Created with MrDocs