summaryrefslogtreecommitdiffstats
path: root/core/math/random_pcg.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-03-04 13:34:18 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-03-04 13:34:18 +0100
commit48aa12011b9338cd73a4243c625bbb400f1bfe38 (patch)
tree38754744ca3b1db40496a52dd4ecd5541460cfe6 /core/math/random_pcg.h
parentde59a9547c07cfbbc80acbec072ff5ab0ccf4c90 (diff)
parent981883d041f6e316cb88c4411e9b140192a9da5e (diff)
downloadredot-engine-48aa12011b9338cd73a4243c625bbb400f1bfe38.tar.gz
Merge pull request #89104 from luevano/fix-rand-weighted
Fix `RandomNumberGenerator::rand_weighted` return type
Diffstat (limited to 'core/math/random_pcg.h')
-rw-r--r--core/math/random_pcg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/random_pcg.h b/core/math/random_pcg.h
index fa8ad3cfb3..fd0934b24a 100644
--- a/core/math/random_pcg.h
+++ b/core/math/random_pcg.h
@@ -90,7 +90,7 @@ public:
return pcg32_boundedrand_r(&pcg, bounds);
}
- int rand_weighted(const Vector<float> &p_weights);
+ int64_t rand_weighted(const Vector<float> &p_weights);
// Obtaining floating point numbers in [0, 1] range with "good enough" uniformity.
// These functions sample the output of rand() as the fraction part of an infinite binary number,