summaryrefslogtreecommitdiff
path: root/include/JSystem/JMath
diff options
context:
space:
mode:
authorhatal175 <hatal175@users.noreply.github.com>2024-01-13 15:41:29 +0200
committerGitHub <noreply@github.com>2024-01-13 05:41:29 -0800
commitead852383fef10f3a7876af7f280d9707ac9e3ef (patch)
treea0c0ab1d2ffac1788bffefcf511183de62efad22 /include/JSystem/JMath
parent6260020b3e40a5227572f4a129ddf5f970f7b72c (diff)
Work on Z2AudioLib (#2032)
Diffstat (limited to 'include/JSystem/JMath')
-rw-r--r--include/JSystem/JMath/random.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/JSystem/JMath/random.h b/include/JSystem/JMath/random.h
index c8448ed513..84d3dfa64c 100644
--- a/include/JSystem/JMath/random.h
+++ b/include/JSystem/JMath/random.h
@@ -15,6 +15,10 @@ struct TRandom_fast_ {
u32 get_bit32(void) { return this->get(); }
+ s8 get_uint8(u8 param_0) {
+ return get_ufloat_1() * param_0;
+ }
+
// due to the float constant, having this function inlined adds that float to data,
// making it not match
float get_ufloat_1(void) {