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

Function GetStrongRandBytes

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

Source from the content-addressed store, hash-verified

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); }
585

Callers 7

CreateBlindValueProofFunction · 0.85
BlindPSBTFunction · 0.85
MakeNewKeyMethod · 0.85
SurjectOutputFunction · 0.85
BlindTransactionFunction · 0.85
EncryptWalletMethod · 0.85

Calls 1

ProcRandFunction · 0.85

Tested by

no test coverage detected