diff options
author | Chaosus <chaosus89@gmail.com> | 2019-03-17 20:51:51 +0300 |
---|---|---|
committer | Chaosus <chaosus89@gmail.com> | 2019-03-27 19:37:25 +0300 |
commit | 6280be46a6fb62b8833a9d55bff590fb209b0fc6 (patch) | |
tree | d87540826d691bf6f533b14efa27dbc14c8ced44 /core/math/random_pcg.cpp | |
parent | df7d3708c5b535c3696943322a14ec19a175e30c (diff) | |
download | redot-engine-6280be46a6fb62b8833a9d55bff590fb209b0fc6.tar.gz |
Properly setup seed in RNG
Diffstat (limited to 'core/math/random_pcg.cpp')
-rw-r--r-- | core/math/random_pcg.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/math/random_pcg.cpp b/core/math/random_pcg.cpp index 45467b32b2..8351bd138e 100644 --- a/core/math/random_pcg.cpp +++ b/core/math/random_pcg.cpp @@ -34,8 +34,7 @@ RandomPCG::RandomPCG(uint64_t p_seed, uint64_t p_inc) : pcg(), - current_seed(DEFAULT_SEED) { - pcg.inc = p_inc; + current_inc(p_inc) { seed(p_seed); } |