aboutsummaryrefslogtreecommitdiff
path: root/common/random.cpp
diff options
context:
space:
mode:
authorMax Horn2011-05-17 12:04:27 +0200
committerMax Horn2011-05-17 12:17:28 +0200
commitfc9b8d2a71cee8ad27aa8e390b378c0e46307bd2 (patch)
treed5890ab7e85f9fb4ca6bbfc0bdce4c78650c78ce /common/random.cpp
parentfb31fa2d6af4d68688ea996e329772b11999dc1a (diff)
downloadscummvm-rg350-fc9b8d2a71cee8ad27aa8e390b378c0e46307bd2.tar.gz
scummvm-rg350-fc9b8d2a71cee8ad27aa8e390b378c0e46307bd2.tar.bz2
scummvm-rg350-fc9b8d2a71cee8ad27aa8e390b378c0e46307bd2.zip
COMMON: Remove auxillary RandomSource constructor
Diffstat (limited to 'common/random.cpp')
-rw-r--r--common/random.cpp8
1 files changed, 0 insertions, 8 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
}