mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
Introduce FastRandomContext::randbool()
This commit is contained in:
@@ -42,6 +42,10 @@ public:
|
||||
return (Rw << 16) + Rz;
|
||||
}
|
||||
|
||||
bool randbool() {
|
||||
return rand32() & 1;
|
||||
}
|
||||
|
||||
uint32_t Rz;
|
||||
uint32_t Rw;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user