summaryrefslogtreecommitdiff
path: root/core/math/math_funcs.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-11-06 16:27:56 +0100
committerGitHub <noreply@github.com>2020-11-06 16:27:56 +0100
commit391d29f558d122798416b5957660d9eeceecd0f5 (patch)
tree4124faa0c5cf14841d23fb77fff406380dbe6a76 /core/math/math_funcs.h
parent6797ab67193d0c016952a1138e49a589ae40724a (diff)
parent38fb26794bcc4352c22e46b97408673cf7084c57 (diff)
Merge pull request #40718 from Chaosus/rand_range
Exposed randi_range to global funcs + renamed rand_range to randf_range
Diffstat (limited to 'core/math/math_funcs.h')
-rw-r--r--core/math/math_funcs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/math_funcs.h b/core/math/math_funcs.h
index f83ee44f4a..827637bf2b 100644
--- a/core/math/math_funcs.h
+++ b/core/math/math_funcs.h
@@ -289,7 +289,7 @@ public:
static double random(double from, double to);
static float random(float from, float to);
- static real_t random(int from, int to) { return (real_t)random((real_t)from, (real_t)to); }
+ static int random(int from, int to);
static _ALWAYS_INLINE_ bool is_equal_approx(real_t a, real_t b) {
// Check for exact equality first, required to handle "infinity" values.