aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Michael Gisbers <michael@gisbers.de>2022-08-04 00:47:27 +0200
committerGravatar Christian Hesse <mail@eworm.de>2022-08-05 22:58:55 +0200
commit0562198c55cea78e984b07e7f753e198fb3bb7a5 (patch)
tree4d7cb1bf0e5c0093622f582a1632e316a0ab57a7
parente31a99a301cb61433b21f138b1dbe00469bee9b1 (diff)
global-functions: $GetRandom20CharHex: use :rndstr
This is available in RouterOS 7.x... Signed-off-by: Christian Hesse <mail@eworm.de>
-rw-r--r--global-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/global-functions b/global-functions
index 8d44957..01c9160 100644
--- a/global-functions
+++ b/global-functions
@@ -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