diff options
Diffstat (limited to 'common/random.h')
-rw-r--r-- | common/random.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/random.h b/common/random.h index ea590f4135..90f2ed5cb0 100644 --- a/common/random.h +++ b/common/random.h @@ -45,11 +45,9 @@ public: */ RandomSource(const String &name); - ~RandomSource(); - void setSeed(uint32 seed); - uint32 getSeed() { + uint32 getSeed() const { return _randSeed; } @@ -59,12 +57,14 @@ public: * @return a random number in the interval [0, max] */ uint getRandomNumber(uint max); + /** * Generates a random bit, i.e. either 0 or 1. - * Identical to getRandomNumber(1), but faster, hopefully. + * Identical to getRandomNumber(1), but potentially faster. * @return a random bit, either 0 or 1 */ uint getRandomBit(); + /** * Generates a random unsigned integer in the interval [min, max]. * @param min the lower bound |