aboutsummaryrefslogtreecommitdiffstats
path: root/global-functions
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-06-30 20:06:55 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-06-30 20:06:55 +0200
commit2093661552c1da7ed4b81875eee39bc5e1167698 (patch)
treef8fad49bc6e367bbfaf81bcca45c56bbfc31dfad /global-functions
parentbaba79e3f5421b82158aa6a5466ae2b8c9caf34d (diff)
global-functions: $GetRandomNumber: limit at 2^32-1
Diffstat (limited to 'global-functions')
-rw-r--r--global-functions2
1 files changed, 1 insertions, 1 deletions
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);
}