commit 582d36d15760238b303e7d66aa044dd988e7ead5
parent e78a75ac842127a5e2cd51c95b7c7fb567b35edd
Author: Luxferre <lux@ferre>
Date: Sun, 21 Jan 2024 19:38:23 +0200
Gen
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/awlite.awk b/awlite.awk
@@ -108,7 +108,7 @@ function mysrand(seed) {
function myrand(r) {
if(game["use_native_rand"] > 0) return int(rand() * 65536)
else { # attempt to optimize McDonnell's generator
- r = (rng_lastrand * 3677 + 3680) % 2147483647
+ r = (rng_lastrand * 3677 + 3680) % 2147483648
rng_lastrand = r -1
return r
}