mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-29 12:50:07 +02:00
global-functions: $ScriptLock: use shorter random string
... but with all characters from alphabet with $GetRandom20CharAlNum.
This commit is contained in:
parent
3c4595e82b
commit
c2a29da9f2
1 changed files with 2 additions and 2 deletions
|
@ -876,7 +876,7 @@
|
||||||
:local DoReturn $2;
|
:local DoReturn $2;
|
||||||
:local WaitMax ([ :tonum $3 ] * 10);
|
:local WaitMax ([ :tonum $3 ] * 10);
|
||||||
|
|
||||||
:global GetRandom20CharHex;
|
:global GetRandom20CharAlNum;
|
||||||
:global IfThenElse;
|
:global IfThenElse;
|
||||||
:global LogPrintExit2;
|
:global LogPrintExit2;
|
||||||
|
|
||||||
|
@ -977,7 +977,7 @@
|
||||||
/system/script/job/remove [ find where script=$Script ];
|
/system/script/job/remove [ find where script=$Script ];
|
||||||
}
|
}
|
||||||
|
|
||||||
:local MyTicket [ $GetRandom20CharHex ];
|
:local MyTicket [ $GetRandom20CharAlNum 6 ];
|
||||||
$AddTicket $Script $MyTicket;
|
$AddTicket $Script $MyTicket;
|
||||||
|
|
||||||
:local WaitCount 0;
|
:local WaitCount 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue