From 0562198c55cea78e984b07e7f753e198fb3bb7a5 Mon Sep 17 00:00:00 2001 From: Michael Gisbers Date: Thu, 4 Aug 2022 00:47:27 +0200 Subject: global-functions: $GetRandom20CharHex: use :rndstr This is available in RouterOS 7.x... Signed-off-by: Christian Hesse --- global-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf