global-functions: $GetRandomNumber: limit at 2^32-1

This commit is contained in:
Christian Hesse 2020-06-30 20:06:55 +02:00
parent baba79e3f5
commit 2093661552

View file

@ -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);
}