mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-28 14:54:51 +02:00
global-functions: $GetRandom20CharHex: do not remove otp...
... as it is instantly invalid anyway.
This commit is contained in:
parent
7f2314d999
commit
cfc400b3d5
1 changed files with 1 additions and 3 deletions
|
@ -405,9 +405,7 @@
|
|||
|
||||
# generate random 20 chars hex (0-9 and a-f)
|
||||
:set GetRandom20CharHex do={
|
||||
:local Random ([ / certificate scep-server otp generate minutes-valid=0 as-value ]->"password");
|
||||
/ certificate scep-server otp remove [ find where password=$Random ];
|
||||
:return $Random;
|
||||
:return ([ / certificate scep-server otp generate minutes-valid=0 as-value ]->"password");
|
||||
}
|
||||
|
||||
# generate random number
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue