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

Function GetRandBytes

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

Source from the content-addressed store, hash-verified

84}
85
86void GetRandBytes(unsigned char* buf, int num)
87{
88 if (RAND_bytes(buf, num) != 1) {
89 LogPrintf("%s: OpenSSL RAND_bytes() failed with error: %s\n", __func__, ERR_error_string(ERR_get_error(), NULL));
90 assert(false);
91 }
92}
93
94uint64_t GetRand(uint64_t nMax)
95{

Callers 11

GetRandFunction · 0.85
GetRandHashFunction · 0.85
seed_insecure_randFunction · 0.85
MakeNewKeyMethod · 0.85
VerifyPubKeyMethod · 0.85
ECC_StartFunction · 0.85
SendMessagesFunction · 0.85
PushVersionMethod · 0.85
WriteMethod · 0.85
EncryptWalletMethod · 0.85
paymentServerTestsMethod · 0.85

Calls

no outgoing calls

Tested by 1

paymentServerTestsMethod · 0.68