diff options
| author | Guy Rabiller | 2014-10-27 09:58:09 +0100 |
|---|---|---|
| committer | Guy Rabiller | 2014-10-27 09:58:12 +0100 |
| commit | 5f2222ee8932171fbd22ddcfdbda93e8143eb1cf (patch) | |
| tree | 43fad30cd677b381ba8ff60636d4237651d74f97 /core/math/math_funcs.cpp | |
| parent | 4e31faab4a4d1a7d0d8786a07ee1210fd89c4245 (diff) | |
| download | godot-5f2222ee8932171fbd22ddcfdbda93e8143eb1cf.tar.gz godot-5f2222ee8932171fbd22ddcfdbda93e8143eb1cf.tar.zst godot-5f2222ee8932171fbd22ddcfdbda93e8143eb1cf.zip | |
Diffstat (limited to 'core/math/math_funcs.cpp')
| -rw-r--r-- | core/math/math_funcs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/math_funcs.cpp b/core/math/math_funcs.cpp index 92236a374..ad48ceaac 100644 --- a/core/math/math_funcs.cpp +++ b/core/math/math_funcs.cpp @@ -76,7 +76,7 @@ void Math::seed(uint32_t x) { void Math::randomize() { OS::Time time = OS::get_singleton()->get_time(); - seed(OS::get_singleton()->get_ticks_usec()*time.hour*time.min*time.sec*rand()); /* *OS::get_singleton()->get_time().sec); // windows doesn't have get_time(), returns always 0 */ + seed(OS::get_singleton()->get_ticks_usec()*(time.hour+1)*(time.min+1)*(time.sec+1)*rand()); /* *OS::get_singleton()->get_time().sec); // windows doesn't have get_time(), returns always 0 */ } uint32_t Math::rand() { |
