Skip to content

Commit

Permalink
ref: gl: libc rand() does better job at randomizing
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Oct 30, 2023
1 parent 21c4d1b commit 102faae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ref/gl/gl_warp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 102faae

Please sign in to comment.