Skip to content

Commit 2bf8c27

Browse files
committed
MC-32427: Sign locks in order to prevent unlock from parallel request
1 parent 1a50006 commit 2bf8c27

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/Lock/Backend

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Lock/Backend/Cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ private function generateLockSign()
125125
try {
126126
$sign .= '-' . \bin2hex(\random_bytes(4));
127127
} catch (\Exception $e) {
128-
$sign .= '-' . \mt_rand(0, 1000);
128+
$sign .= '-' . \uniqid('-uniqid-');
129129
}
130130

131131
return $sign;

0 commit comments

Comments
 (0)