1
0
mirror of https://github.com/eworm-de/routeros-scripts.git synced 2024-05-11 05:55:19 +00:00

global-functions: $ScriptLock: use shorter random string

... but with all characters from alphabet with $GetRandom20CharAlNum.
This commit is contained in:
Christian Hesse
2022-11-22 19:01:19 +01:00
parent 3c4595e82b
commit c2a29da9f2

View File

@ -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;