mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
global-functions: $GetRandom20CharHex: use :rndstr
This is available in RouterOS 7.x... Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
parent
e31a99a301
commit
0562198c55
|
@ -402,7 +402,7 @@
|
||||||
|
|
||||||
# generate random 20 chars hex (0-9 and a-f)
|
# generate random 20 chars hex (0-9 and a-f)
|
||||||
:set GetRandom20CharHex do={
|
:set GetRandom20CharHex do={
|
||||||
:return ([ /certificate/scep-server/otp/generate minutes-valid=0 as-value ]->"password");
|
:return [ :rndstr length=20 from="0123456789abcdef" ];
|
||||||
}
|
}
|
||||||
|
|
||||||
# generate random number
|
# generate random number
|
||||||
|
|
Loading…
Reference in a new issue