mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-06 19:08:15 +00:00
COMMON: Remove auxillary RandomSource constructor
This commit is contained in:
parent
fb31fa2d6a
commit
fc9b8d2a71
@ -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
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user