sdl2-compat: sync testlib with latest SDL2.

From c88407ea45ba2aa30fe7f2e26789188624949c6a Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sat, 4 Jan 2025 11:50:02 +0300
Subject: [PATCH] sync testlib with latest SDL2.

---
 src/test/SDL_test_fuzzer.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/test/SDL_test_fuzzer.c b/src/test/SDL_test_fuzzer.c
index ee58b28..15bef31 100644
--- a/src/test/SDL_test_fuzzer.c
+++ b/src/test/SDL_test_fuzzer.c
@@ -156,19 +156,17 @@ Sint32 SDLTest_RandomIntegerInRange(Sint32 pMin, Sint32 pMax)
     Uint64 range;
 
     if (pMin > pMax) {
-        Sint32 temp;
-        temp = min;
-        min = max;
-        max = temp;
+        min = pMax;
+        max = pMin;
     } else if (pMin == pMax) {
         return (Sint32)min;
     }
 
     range = (Sint64)max - (Sint64)min;
     if (range < SDL_MAX_SINT32) {
-        return min + (Sint32) (SDLTest_RandomUint32() % (range + 1));
+        return (Sint32) (min + (Sint32) (SDLTest_RandomUint32() % (range + 1)));
     } else {
-        Uint64 add = SDLTest_RandomUint32() | SDLTest_RandomUint32();
+        const Uint64 add = SDLTest_RandomUint32() | SDLTest_RandomUint32();
         return (Sint32) (min + (Sint64) (add % (range + 1)));
     }
 }