diff options
author | Matthew Hoops | 2013-07-06 23:54:45 -0400 |
---|---|---|
committer | Matthew Hoops | 2013-07-06 23:54:45 -0400 |
commit | 4a7e4e5b22da3587a9d68978d7be31e4e78a8ccc (patch) | |
tree | 99da5697f89e53aef119dc1e49d2df9a96c0eae9 /common | |
parent | bd82ca97c228edb1f526a8a88a9f370daab8de95 (diff) | |
download | scummvm-rg350-4a7e4e5b22da3587a9d68978d7be31e4e78a8ccc.tar.gz scummvm-rg350-4a7e4e5b22da3587a9d68978d7be31e4e78a8ccc.tar.bz2 scummvm-rg350-4a7e4e5b22da3587a9d68978d7be31e4e78a8ccc.zip |
ALL: Don't use EventRecorder at all when not compiled in
Diffstat (limited to 'common')
-rw-r--r-- | common/random.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/common/random.cpp b/common/random.cpp index a74ab831ea..de1269b485 100644 --- a/common/random.cpp +++ b/common/random.cpp @@ -30,8 +30,12 @@ RandomSource::RandomSource(const String &name) { // 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_eventRec.getRandomSeed(name); - setSeed(seed); + +#ifdef ENABLE_EVENTRECORDER + setSeed(g_eventRec.getRandomSeed(name)); +#else + setSeed(g_system->getMillis()); +#endif } void RandomSource::setSeed(uint32 seed) { |