mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-16 13:04:30 +02:00
global-functions: $GetRandomNumber: return 32bit number without limit
This commit is contained in:
parent
38760d05b0
commit
baba79e3f5
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue