MCPcopy Create free account
hub / github.com/ElementsProject/elements / RandomSeed

Method RandomSeed

src/random.cpp:605–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603}
604
605void FastRandomContext::RandomSeed()
606{
607 uint256 seed = GetRandHash();
608 rng.SetKey(seed.begin(), 32);
609 requires_seed = false;
610}
611
612uint256 FastRandomContext::rand256() noexcept
613{

Callers

nothing calls this directly

Calls 3

GetRandHashFunction · 0.85
SetKeyMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected