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

Method MakeDeterministic

src/test/net_tests.cpp:23–27  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

21
22 //! Ensure that bucket placement is always the same for testing purposes.
23 void MakeDeterministic()
24 {
25 nKey.SetNull();
26 seed_insecure_rand(true);
27 }
28};
29
30class CAddrManUncorrupted : public CAddrManSerializationMock

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.45

Calls 2

seed_insecure_randFunction · 0.85
SetNullMethod · 0.45

Tested by

no test coverage detected