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

Function MakeRandDeterministicDANGEROUS

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

Internal function to set g_determinstic_rng. Only accessed from tests. */

Source from the content-addressed store, hash-verified

593
594/** Internal function to set g_determinstic_rng. Only accessed from tests. */
595void MakeRandDeterministicDANGEROUS(const uint256& seed) noexcept
596{
597 GetRNGState().MakeDeterministic(seed);
598}
599std::atomic<bool> g_used_g_prng{false}; // Only accessed from tests
600
601void GetRandBytes(std::span<unsigned char> bytes) noexcept

Callers 2

cmpctblock.cppFile · 0.85
SeedRandomStateForTestFunction · 0.85

Calls

no outgoing calls

Tested by 1

SeedRandomStateForTestFunction · 0.68