aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/random.cpp8
-rw-r--r--common/random.h5
2 files changed, 0 insertions, 13 deletions
diff --git a/common/random.cpp b/common/random.cpp
index be69d39d2d..9ecd5d0892 100644
--- a/common/random.cpp
+++ b/common/random.cpp
@@ -38,14 +38,6 @@ RandomSource::RandomSource(const String &name) {
g_eventRec.registerRandomSource(*this, name);
}
-RandomSource::RandomSource() {
- // Use system time as RNG seed. Normally not a good idea, if you are using
- // a RNG for security purposes, but good enough for our purposes.
- assert(g_system);
- uint32 seed = g_system->getMillis();
- setSeed(seed);
-}
-
RandomSource::~RandomSource() {
// TODO: Unregister with g_eventRec
}
diff --git a/common/random.h b/common/random.h
index 308d8a62b9..ea590f4135 100644
--- a/common/random.h
+++ b/common/random.h
@@ -45,11 +45,6 @@ public:
*/
RandomSource(const String &name);
- // FIXME: This constructor for a nameless randomness source should be removed.
- // I am only adding this temporarily to ease transition to the new
- // system which enforces names for randomness sources.
- RandomSource();
-
~RandomSource();
void setSeed(uint32 seed);