MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / GetRandBytes

Function GetRandBytes

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

Source from the content-addressed store, hash-verified

272}
273
274void GetRandBytes(unsigned char* buf, int num)
275{
276 if (RAND_bytes(buf, num) != 1) {
277 RandFailure();
278 }
279}
280
281static void AddDataToRng(void* data, size_t len);
282

Callers 13

SerializeFileDBFunction · 0.85
GetStrongRandBytesFunction · 0.85
GetRandFunction · 0.85
GetRandHashFunction · 0.85
protocolinfo_cbMethod · 0.85
SendMessagesMethod · 0.85
VerifyPubKeyMethod · 0.85
ECC_StartFunction · 0.85
CreateObfuscateKeyMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
CSignatureCacheMethod · 0.85
paymentServerTestsMethod · 0.85

Calls 1

RandFailureFunction · 0.85

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.68
paymentServerTestsMethod · 0.68