mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-23 20:34:27 +02: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
1 changed files with 1 additions and 1 deletions
|
@ -402,7 +402,7 @@
|
|||
|
||||
# generate random 20 chars hex (0-9 and a-f)
|
||||
:set GetRandom20CharHex do={
|
||||
:return ([ /certificate/scep-server/otp/generate minutes-valid=0 as-value ]->"password");
|
||||
:return [ :rndstr length=20 from="0123456789abcdef" ];
|
||||
}
|
||||
|
||||
# generate random number
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue