1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

Revert "Properly setup seed in RNG"

This reverts commit 1dd72dca45.
As pointed out in #27171, it would break compatibility with 3.1.0.
This commit is contained in:
Rémi Verschelde
2019-04-09 09:36:31 +02:00
parent 6137387ede
commit b5d9099626
4 changed files with 5 additions and 15 deletions

View File

@@ -34,7 +34,8 @@
RandomPCG::RandomPCG(uint64_t p_seed, uint64_t p_inc) :
pcg(),
current_inc(p_inc) {
current_seed(DEFAULT_SEED) {
pcg.inc = p_inc;
seed(p_seed);
}