From 46889ed453f3a0284bf0e49d3f1afc860b0abcb9 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 30 Oct 2023 07:47:13 +0300 Subject: [PATCH] ref: gl: libc rand() does better job at randomizing --- ref/gl/gl_warp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ref/gl/gl_warp.c b/ref/gl/gl_warp.c index 1c73ca25..eba6d61d 100644 --- a/ref/gl/gl_warp.c +++ b/ref/gl/gl_warp.c @@ -957,9 +957,9 @@ void R_AnimateRipples( void ) g_ripple.oldtime = g_ripple.time; - x = gEngfuncs.COM_RandomLong( 0, 0x7fff ); - y = gEngfuncs.COM_RandomLong( 0, 0x7fff ); - val = gEngfuncs.COM_RandomLong( 0, 0x3ff ); + x = rand() & 0x7fff; + y = rand() & 0x7fff; + val = rand() & 0x3ff; R_SpawnNewRipple( x, y, val ); }