From ceb699f5ec50a69c8c9c37f4ed146cc0dd492f87 Mon Sep 17 00:00:00 2001 From: Ferenc Arn Date: Mon, 17 Apr 2017 12:50:31 -0500 Subject: 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. --- core/os/os.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'core/os') 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() { -- cgit v1.2.3