From fc9b8d2a71cee8ad27aa8e390b378c0e46307bd2 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 17 May 2011 12:04:27 +0200 Subject: COMMON: Remove auxillary RandomSource constructor --- common/random.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'common/random.cpp') 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 } -- cgit v1.2.3