FastRandomContext::FastRandomContext

Constructors

Synopses

Declared in <random.h>

Construct a FastRandomContext with GetRandHash()-based entropy (or zero key if fDeterministic).

explicit
FastRandomContext(bool fDeterministic = false) noexcept;
» more...

Initialize with explicit seed (only for testing)

explicit
FastRandomContext(uint256 const& seed) noexcept;
» more...

Parameters

NameDescription
fDeterministicWhen true, seed with a zero key for reproducible output instead of gathering entropy.
seedThe fixed seed to initialize the context with.