diff options
author | Max Horn | 2007-12-06 11:47:38 +0000 |
---|---|---|
committer | Max Horn | 2007-12-06 11:47:38 +0000 |
commit | 6cf6b9d89b29d49f93b68ffd6732c929c91b380e (patch) | |
tree | 34db43975cf076316a4793d890b551ac4250584a | |
parent | e92c67d5a043e5044864ae9325d2adb97a5151e8 (diff) | |
download | scummvm-rg350-6cf6b9d89b29d49f93b68ffd6732c929c91b380e.tar.gz scummvm-rg350-6cf6b9d89b29d49f93b68ffd6732c929c91b380e.tar.bz2 scummvm-rg350-6cf6b9d89b29d49f93b68ffd6732c929c91b380e.zip |
Do not use time() needlessly
svn-id: r29733
-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); } |