diff options
author | Christian Hesse <mail@eworm.de> | 2022-11-22 19:01:07 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-11-22 19:05:02 +0100 |
commit | 3c4595e82b0200e3c213e78c673a65ed26f7e18b (patch) | |
tree | 3a1f7f17ce49abefd42552ba8817cfa659aab07e | |
parent | 514d241969eae6afd0476d47d0f83cd6cafb3c19 (diff) |
global-functions: $MkDir: use shorter random string
... but with all characters from alphabet with $GetRandom20CharAlNum.
-rw-r--r-- | global-functions | 4 |
1 files changed, 2 insertions, 2 deletions
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; |