diff options
author | Chaosus <chaosus89@gmail.com> | 2018-09-21 14:32:17 +0300 |
---|---|---|
committer | Chaosus <chaosus89@gmail.com> | 2018-11-13 10:50:07 +0300 |
commit | f8151a9e5042ad3de64589f77cb108872694469c (patch) | |
tree | 2142d05afadadad7d0d7edf3e52d9b9b2bcb0b87 /core/math/math_funcs.h | |
parent | 8849d3b47de8ab936549f0b9262c1193164feee5 (diff) | |
download | redot-engine-f8151a9e5042ad3de64589f77cb108872694469c.tar.gz |
Implement random number generator
Co-authored-by: Zirak <zirakertan@gmail.com>
Diffstat (limited to 'core/math/math_funcs.h')
-rw-r--r-- | core/math/math_funcs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/math/math_funcs.h b/core/math/math_funcs.h index 65c318448c..f9d89d5d5a 100644 --- a/core/math/math_funcs.h +++ b/core/math/math_funcs.h @@ -32,6 +32,7 @@ #define MATH_FUNCS_H #include "core/math/math_defs.h" +#include "core/math/random_pcg.h" #include "core/typedefs.h" #include "thirdparty/misc/pcg.h" @@ -41,7 +42,7 @@ class Math { - static pcg32_random_t default_pcg; + static RandomPCG default_rand; public: Math() {} // useless to instance |