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

Function RandomInit

src/random.cpp:707–713  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

705}
706
707void RandomInit()
708{
709 // Invoke RNG code to trigger initialization (if not already performed)
710 ProcRand(nullptr, 0, RNGLevel::FAST);
711
712 ReportHardwareRand();
713}
714
715std::chrono::microseconds GetExponentialRand(std::chrono::microseconds now, std::chrono::seconds average_interval)
716{

Callers 2

mainFunction · 0.85
SetGlobalsFunction · 0.85

Calls 2

ProcRandFunction · 0.85
ReportHardwareRandFunction · 0.85

Tested by

no test coverage detected