Add missing GUARDED_BY to CAddrMan::insecure_rand

This commit is contained in:
MarcoFalke
2021-07-22 20:56:27 +02:00
parent fab755b77f
commit fa32024d51
4 changed files with 6 additions and 4 deletions

View File

@@ -34,6 +34,7 @@ public:
//! Ensure that bucket placement is always the same for testing purposes.
void MakeDeterministic()
{
LOCK(cs);
nKey.SetNull();
insecure_rand = FastRandomContext(true);
}
@@ -87,11 +88,11 @@ public:
{
CAddrMan::Clear();
if (deterministic) {
LOCK(cs);
nKey.SetNull();
insecure_rand = FastRandomContext(true);
}
}
};
static CNetAddr ResolveIP(const std::string& ip)