Constructors

Synopses

Declared in <random.h>

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

explicit
FastRandomContext(bool fDeterministic = false) noexcept;

Initialize with explicit seed (only for testing)

explicit
FastRandomContext(uint256 const& seed) noexcept;

Parameters

Name

Description

fDeterministic

When true, seed with a zero key for reproducible output instead of gathering entropy.

seed

The fixed seed to initialize the context with.

Created with MrDocs