mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $GetRandomNumber: limit at 2^32-1
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user