diff options
author | Christian Hesse <mail@eworm.de> | 2020-06-18 12:49:52 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-06-18 12:49:52 +0200 |
commit | 529dbbe4f811653ffcf176ef7f0242ef892c8fe3 (patch) | |
tree | 831f98876ab2a941a537e5b8d3c2b9ce00205f14 | |
parent | a1d05f93c658b79ece0565241fd3fce882ac99cd (diff) |
global-functions: rename $GetRandom -> $GetRandomNumber
-rw-r--r-- | global-functions | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/global-functions b/global-functions index a37ce5d..e6b40ba 100644 --- a/global-functions +++ b/global-functions @@ -27,7 +27,7 @@ :global DNSIsResolving; :global DownloadPackage; :global GetMacVendor; -:global GetRandom; +:global GetRandomNumber; :global GetRandomSha256; :global LogPrintExit; :global MailServerIsUp; @@ -307,7 +307,7 @@ # generate random number # Warning: This is a *very* weak algorithm and in *no way* # useful for cryptography or similar! -:set GetRandom do={ +:set GetRandomNumber do={ :local Max ([ :tonum $1 ] + 1); :local Sum 0; @@ -415,9 +415,9 @@ # delay a random amount of seconds :set RandomDelay do={ - :global GetRandom; + :global GetRandomNumber; - :delay ([ $GetRandom $1 ] . "s"); + :delay ([ $GetRandomNumber $1 ] . "s"); } # check if script is run from terminal |