From 2093661552c1da7ed4b81875eee39bc5e1167698 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 30 Jun 2020 20:06:55 +0200 Subject: global-functions: $GetRandomNumber: limit at 2^32-1 --- global-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/global-functions b/global-functions index 3a2b19d..f529511 100644 --- a/global-functions +++ b/global-functions @@ -308,7 +308,7 @@ # generate random number :set GetRandomNumber do={ - :local Max 4294967296; + :local Max 4294967295; :if ([ :typeof $1 ] != "nothing" ) do={ :set Max ([ :tonum $1 ] + 1); } -- cgit v1.2.3-54-g00ecf