aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--global-functions5
1 files changed, 4 insertions, 1 deletions
diff --git a/global-functions b/global-functions
index eaf4532..3a2b19d 100644
--- a/global-functions
+++ b/global-functions
@@ -308,7 +308,10 @@
# generate random number
:set GetRandomNumber do={
- :local Max ([ :tonum $1 ] + 1);
+ :local Max 4294967296;
+ :if ([ :typeof $1 ] != "nothing" ) do={
+ :set Max ([ :tonum $1 ] + 1);
+ }
:global GetRandomSha256;