COMMON: Remove auxillary RandomSource constructor

This commit is contained in:
Max Horn 2011-05-17 12:04:27 +02:00
parent fb31fa2d6a
commit fc9b8d2a71
2 changed files with 0 additions and 13 deletions

View File

@ -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
}

View File

@ -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);