summaryrefslogtreecommitdiff
path: root/core/os
diff options
context:
space:
mode:
authorFerenc Arn <tagcup@yahoo.com>2017-04-17 12:50:31 -0500
committerFerenc Arn <tagcup@yahoo.com>2017-04-17 14:05:02 -0500
commitceb699f5ec50a69c8c9c37f4ed146cc0dd492f87 (patch)
tree79cf61d09536eea6a8f023f373b297ebee5817be /core/os
parent6f9ec3acfc45ae4f3649777a41bd3685a81fb114 (diff)
Fix PRNG randomization.
PCG32 doesn't like small seeds, which leads to zero random values (prior to #7532, zero values were handled as special cases). Use a large default seed, and also add a shift in Math::randomize. Fixes #8423.
Diffstat (limited to 'core/os')
-rw-r--r--core/os/os.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/os/os.cpp b/core/os/os.cpp
index ab03bb8016..e323e03829 100644
--- a/core/os/os.cpp
+++ b/core/os/os.cpp
@@ -507,7 +507,6 @@ OS::OS() {
_render_thread_mode = RENDER_THREAD_SAFE;
_allow_hidpi = true;
- Math::seed(1234567);
}
OS::~OS() {