diff options
Diffstat (limited to 'common/random.cpp')
-rw-r--r-- | common/random.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/common/random.cpp b/common/random.cpp index 9ecd5d0892..55fa3cbd30 100644 --- a/common/random.cpp +++ b/common/random.cpp @@ -33,15 +33,12 @@ RandomSource::RandomSource(const String &name) { uint32 seed = g_system->getMillis(); setSeed(seed); - // Register this random source with the event recorder. This might - // reset the seed, so call it *after* the initial seed has been set. + // Register this random source with the event recorder. This may end + // up querying or resetting the current seed, so we must call it + // *after* the initial seed has been set. g_eventRec.registerRandomSource(*this, name); } -RandomSource::~RandomSource() { - // TODO: Unregister with g_eventRec -} - void RandomSource::setSeed(uint32 seed) { _randSeed = seed; } |