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

Function GetRandBytes

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

Source from the content-addressed store, hash-verified

579}
580
581void GetRandBytes(unsigned char* buf, int num) noexcept { ProcRand(buf, num, RNGLevel::FAST); }
582void GetStrongRandBytes(unsigned char* buf, int num) noexcept { ProcRand(buf, num, RNGLevel::SLOW); }
583void RandAddPeriodic() noexcept { ProcRand(nullptr, 0, RNGLevel::PERIODIC); }
584void RandAddEvent(const uint32_t event_info) noexcept { GetRNGState().AddEvent(event_info); }

Callers 13

SerializeFileDBFunction · 0.85
GetRandHashFunction · 0.85
protocolinfo_cbMethod · 0.85
MaybeSendPingMethod · 0.85
VerifyPubKeyMethod · 0.85
ECC_StartFunction · 0.85
CreateObfuscateKeyMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
GenerateAuthCookieFunction · 0.85

Calls 1

ProcRandFunction · 0.85

Tested by 4

BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68