MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / GetRandHash

Function GetRandHash

src/random.h:463–468  ·  view source on GitHub ↗

Generate a random uint256. */

Source from the content-addressed store, hash-verified

461
462/** Generate a random uint256. */
463inline uint256 GetRandHash() noexcept
464{
465 uint256 hash;
466 GetRandBytes(hash);
467 return hash;
468}
469
470/* ============================= MISCELLANEOUS TEST-ONLY FUNCTIONS ============================= */
471

Callers 15

RandomSeedMethod · 0.85
ValidationCacheMethod · 0.85
V2TransportMethod · 0.85
AddTxFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
SignatureCacheMethod · 0.85
BOOST_FIXTURE_TEST_CASEFunction · 0.85
BOOST_FIXTURE_TEST_CASEFunction · 0.85
random_outpointsFunction · 0.85
SeedRandomStateForTestFunction · 0.85

Calls 1

GetRandBytesFunction · 0.85

Tested by 7

AddTxFunction · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
BOOST_FIXTURE_TEST_CASEFunction · 0.68
BOOST_FIXTURE_TEST_CASEFunction · 0.68
random_outpointsFunction · 0.68
SeedRandomStateForTestFunction · 0.68
SeedRandomForTestMethod · 0.68