mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: $GetRandom20CharHex: add optional parameter for length
This commit is contained in:
@ -402,7 +402,9 @@
|
||||
|
||||
# generate random 20 chars hex (0-9 and a-f)
|
||||
:set GetRandom20CharHex do={
|
||||
:return [ :rndstr length=20 from="0123456789abcdef" ];
|
||||
:global EitherOr;
|
||||
|
||||
:return [ :rndstr length=[ $EitherOr [ :tonum $1 ] 20 ] from="0123456789abcdef" ];
|
||||
}
|
||||
|
||||
# generate random number
|
||||
|
Reference in New Issue
Block a user