MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / RandomSeed

Method RandomSeed

src/random.cpp:619–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

617void RandAddEvent(const uint32_t event_info) noexcept { GetRNGState().AddEvent(event_info); }
618
619void FastRandomContext::RandomSeed() noexcept
620{
621 uint256 seed = GetRandHash();
622 rng.SetKey(MakeByteSpan(seed));
623 requires_seed = false;
624}
625
626void FastRandomContext::fillrand(std::span<std::byte> output) noexcept
627{

Callers

nothing calls this directly

Calls 3

GetRandHashFunction · 0.85
MakeByteSpanFunction · 0.85
SetKeyMethod · 0.45

Tested by

no test coverage detected