From aad91d90ea3c4cbe21b5c4f61fed94aaa337bddb Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 28 Jun 2021 01:13:31 +0200 Subject: global-functions: $ScriptLock: use hex string for ticket Does not matter what the ticket looks like, but using hex string it is not converted to number. --- global-functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/global-functions b/global-functions index 9c4a53e..e7080e4 100644 --- a/global-functions +++ b/global-functions @@ -908,7 +908,7 @@ :local DoReturn $2; :local WaitMax ([ :tonum $3 ] * 10); - :global GetRandomNumber; + :global GetRandom20CharHex; :global IfThenElse; :global LogPrintExit2; @@ -947,7 +947,7 @@ / system script job remove [ find where script=$Script ]; } - :local MyTicket [ $GetRandomNumber ]; + :local MyTicket [ $GetRandom20CharHex ]; :set ($ScriptLockOrder->$Script) [ $AddTicket ($ScriptLockOrder->$Script) $MyTicket ]; :local WaitCount 0; -- cgit v1.2.3-54-g00ecf