mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
Add missing GUARDED_BY to CAddrMan::insecure_rand
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user