diff options
Diffstat (limited to 'src/random.h')
-rw-r--r-- | src/random.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/random.h b/src/random.h index 0464bdce14..82886bec59 100644 --- a/src/random.h +++ b/src/random.h @@ -42,6 +42,10 @@ public: return (Rw << 16) + Rz; } + bool randbool() { + return rand32() & 1; + } + uint32_t Rz; uint32_t Rw; }; |