summaryrefslogtreecommitdiffstats
path: root/core/math/random_pcg.cpp
diff options
context:
space:
mode:
authorChaosus <chaosus89@gmail.com>2019-03-17 20:51:51 +0300
committerChaosus <chaosus89@gmail.com>2019-03-27 19:37:25 +0300
commit6280be46a6fb62b8833a9d55bff590fb209b0fc6 (patch)
treed87540826d691bf6f533b14efa27dbc14c8ced44 /core/math/random_pcg.cpp
parentdf7d3708c5b535c3696943322a14ec19a175e30c (diff)
downloadredot-engine-6280be46a6fb62b8833a9d55bff590fb209b0fc6.tar.gz
Properly setup seed in RNG
Diffstat (limited to 'core/math/random_pcg.cpp')
-rw-r--r--core/math/random_pcg.cpp3
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);
}