From 3c4595e82b0200e3c213e78c673a65ed26f7e18b Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 22 Nov 2022 19:01:07 +0100 Subject: global-functions: $MkDir: use shorter random string ... but with all characters from alphabet with $GetRandom20CharAlNum. --- global-functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'global-functions') diff --git a/global-functions b/global-functions index f4c47d7..3814176 100644 --- a/global-functions +++ b/global-functions @@ -506,7 +506,7 @@ :local Dir [ :tostr $1 ]; :global CleanFilePath; - :global GetRandom20CharHex; + :global GetRandom20CharAlNum; :global LogPrintExit2; :global WaitForFile; @@ -521,7 +521,7 @@ } :local Return true; - :local Name ($Dir . "-" . [ $GetRandom20CharHex ]); + :local Name ($Dir . "-" . [ $GetRandom20CharAlNum 6 ]); :do { /ip/smb/share/add disabled=yes directory=$Dir name=$Name; $WaitForFile $Dir; -- cgit v1.2.3-70-g09d2