diff options
author | Gregory Montoir | 2007-12-06 21:11:26 +0000 |
---|---|---|
committer | Gregory Montoir | 2007-12-06 21:11:26 +0000 |
commit | 65779599de285edb707c4a5fa4e8506385bfc54a (patch) | |
tree | aee9b1dd719e44c26a52fbd2cd3fd437ad2579b6 /common/util.cpp | |
parent | 4806a5f673648b29c36b9a1f4f985bd7666da102 (diff) | |
download | scummvm-rg350-65779599de285edb707c4a5fa4e8506385bfc54a.tar.gz scummvm-rg350-65779599de285edb707c4a5fa4e8506385bfc54a.tar.bz2 scummvm-rg350-65779599de285edb707c4a5fa4e8506385bfc54a.zip |
reverted commit #29736 with a proper fix (I think) to fmopl code
svn-id: r29741
Diffstat (limited to 'common/util.cpp')
-rw-r--r-- | common/util.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/common/util.cpp b/common/util.cpp index 41f35a8a0e..46b5acf502 100644 --- a/common/util.cpp +++ b/common/util.cpp @@ -154,11 +154,8 @@ void hexdump(const byte * data, int len, int bytesPerLine) { 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. -#if defined (__SYMBIAN32__) && defined (__WINS__) - uint32 seed = 0; // Symbian produces RT crash on time(0) -#else - uint32 seed = time(0); -#endif + assert(g_system); + uint32 seed = g_system->getMillis(); setSeed(seed); } |