From 0798df90376a88adde7c18ab6adb650f45320c80 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Wed, 5 Mar 2025 20:47:14 -0600 Subject: [PATCH] FIxed rand on GCC --- src/sys/sys_math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sys/sys_math.c b/src/sys/sys_math.c index f0cda198..c085aea2 100644 --- a/src/sys/sys_math.c +++ b/src/sys/sys_math.c @@ -19,7 +19,7 @@ void Rand_Init(void) { } f32 Rand_ZeroOne(void) { -#ifdef __SWITCH__ // Readded to prevent 0 seed +#if defined(__SWITCH__) || defined(__linux__) if (sRandSeed1 == sRandSeed2 == sRandSeed3 == 0){ Rand_Init(); }