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

@@ -631,12 +631,12 @@ protected:
uint256 nKey;
//! Source of random numbers for randomization in inner loops
mutable FastRandomContext insecure_rand;
mutable FastRandomContext insecure_rand GUARDED_BY(cs);
private:
//! A mutex to protect the inner data structures.
mutable Mutex cs;
private:
//! Serialization versions.
enum Format : uint8_t {
V0_HISTORICAL = 0, //!< historic format, before commit e6b343d88