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

@@ -37,6 +37,7 @@ public:
//! Ensure that bucket placement is always the same for testing purposes.
void MakeDeterministic()
{
LOCK(cs);
nKey.SetNull();
insecure_rand = FastRandomContext(true);
}