1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Properly setup seed in RNG

(cherry picked from commit 6280be46a6)
This commit is contained in:
Chaosus
2019-03-17 20:51:51 +03:00
committed by Rémi Verschelde
parent 29a6e7d306
commit 1dd72dca45
4 changed files with 15 additions and 5 deletions

View File

@@ -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);
}