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

Method MakeDeterministic

src/test/addrman_tests.cpp:25–29  ·  view source on GitHub ↗

Ensure that bucket placement is always the same for testing purposes.

Source from the content-addressed store, hash-verified

23
24 //! Ensure that bucket placement is always the same for testing purposes.
25 void MakeDeterministic()
26 {
27 nKey.SetNull();
28 seed_insecure_rand(true);
29 }
30
31 int RandomInt(int nMax)
32 {

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.45

Calls 2

seed_insecure_randFunction · 0.85
SetNullMethod · 0.45

Tested by

no test coverage detected