COMMON: Remove auxillary RandomSource constructor
This commit is contained in:
parent
fb31fa2d6a
commit
fc9b8d2a71
2 changed files with 0 additions and 13 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue