Introduce FastRandomContext::randbool()

This commit is contained in:
Pieter Wuille
2017-02-17 16:32:16 -08:00
parent 4bd0e9b90a
commit c21cbe61c6
2 changed files with 5 additions and 1 deletions

View File

@@ -42,6 +42,10 @@ public:
return (Rw << 16) + Rz;
}
bool randbool() {
return rand32() & 1;
}
uint32_t Rz;
uint32_t Rw;
};