Skip to content

Commit 6a26334

Browse files
mgisberseworm-de
authored andcommitted
global-functions: $GetRandom20CharHex: use :rndstr
This is available in RouterOS 7.x... Signed-off-by: Christian Hesse <[email protected]>
1 parent 9f9aeaf commit 6a26334

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

global-functions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@
402402

403403
# generate random 20 chars hex (0-9 and a-f)
404404
:set GetRandom20CharHex do={
405-
:return ([ /certificate/scep-server/otp/generate minutes-valid=0 as-value ]->"password");
405+
:return [ :rndstr length=20 from="0123456789abcdef" ];
406406
}
407407

408408
# generate random number

0 commit comments

Comments
 (0)