aboutsummaryrefslogtreecommitdiff
path: root/common/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/util.h')
-rw-r--r--common/util.h39
1 files changed, 0 insertions, 39 deletions
diff --git a/common/util.h b/common/util.h
index 453eccda6f..3e1fc2d1c1 100644
--- a/common/util.h
+++ b/common/util.h
@@ -111,45 +111,6 @@ String tag2string(uint32 tag);
#define tag2str(x) Common::tag2string(x).c_str()
-
-
-/**
- * Simple random number generator. Although it is definitely not suitable for
- * cryptographic purposes, it serves our purposes just fine.
- */
-class RandomSource {
-private:
- uint32 _randSeed;
-
-public:
- RandomSource();
- void setSeed(uint32 seed);
-
- uint32 getSeed() {
- return _randSeed;
- }
-
- /**
- * Generates a random unsigned integer in the interval [0, max].
- * @param max the upper bound
- * @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.
- * @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
- * @param max the upper bound
- * @return a random number in the interval [min, max]
- */
- uint getRandomNumberRng(uint min, uint max);
-};
-
/**
* List of game language.
*/