From c2a29da9f2fe48ad1cf028efaa02b4bfdae8504b Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 22 Nov 2022 19:01:19 +0100 Subject: global-functions: $ScriptLock: use shorter random string ... but with all characters from alphabet with $GetRandom20CharAlNum. --- global-functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/global-functions b/global-functions index 3814176..3d04bcb 100644 --- a/global-functions +++ b/global-functions @@ -876,7 +876,7 @@ :local DoReturn $2; :local WaitMax ([ :tonum $3 ] * 10); - :global GetRandom20CharHex; + :global GetRandom20CharAlNum; :global IfThenElse; :global LogPrintExit2; @@ -977,7 +977,7 @@ /system/script/job/remove [ find where script=$Script ]; } - :local MyTicket [ $GetRandom20CharHex ]; + :local MyTicket [ $GetRandom20CharAlNum 6 ]; $AddTicket $Script $MyTicket; :local WaitCount 0; -- cgit v1.2.3-54-g00ecf