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

Function insecure_GetRandHash

src/test/cuckoocache_tests.cpp:31–36  ·  view source on GitHub ↗

insecure_GetRandHash fills in a uint256 from local_rand_ctx */

Source from the content-addressed store, hash-verified

29/** insecure_GetRandHash fills in a uint256 from local_rand_ctx
30 */
31static void insecure_GetRandHash(uint256& t)
32{
33 uint32_t* ptr = (uint32_t*)t.begin();
34 for (uint8_t j = 0; j < 8; ++j)
35 *(ptr++) = local_rand_ctx.rand32();
36}
37
38
39

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 2

rand32Method · 0.80
beginMethod · 0.45

Tested by

no test coverage detected