diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-01-16 20:06:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-16 20:06:54 +0100 |
commit | bf05dab74f5c0fc19663dce05b462be2aba581a5 (patch) | |
tree | 837c11d04a76437e69d43744487cedf1bb5ec1f0 /modules/gdscript | |
parent | 0a9aee6b1d20f29e0e7a3bc8990f807144b62f74 (diff) | |
parent | 4c9004671af455a03acb4e2750b12d62b2b3c917 (diff) |
Merge pull request #7532 from tagcup/pcg_prng
Replace the existing PRNG (Xorshift31) with (minimal) PCG-32.
Diffstat (limited to 'modules/gdscript')
-rw-r--r-- | modules/gdscript/gd_functions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdscript/gd_functions.cpp b/modules/gdscript/gd_functions.cpp index f1e9f7de08..4f3516c097 100644 --- a/modules/gdscript/gd_functions.cpp +++ b/modules/gdscript/gd_functions.cpp @@ -351,14 +351,14 @@ void GDFunctions::call(Function p_func,const Variant **p_args,int p_arg_count,Va case MATH_SEED: { VALIDATE_ARG_COUNT(1); VALIDATE_ARG_NUM(0); - uint32_t seed=*p_args[0]; + uint64_t seed=*p_args[0]; Math::seed(seed); r_ret=Variant(); } break; case MATH_RANDSEED: { VALIDATE_ARG_COUNT(1); VALIDATE_ARG_NUM(0); - uint32_t seed=*p_args[0]; + uint64_t seed=*p_args[0]; int ret = Math::rand_from_seed(&seed); Array reta; reta.push_back(ret); |