Skip to content

Commit d5df358

Browse files
authored
Fix random ID generation to cast mt_rand to string
1 parent 721a2b2 commit d5df358

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/V3/ImageVariable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ public function loadImageData($image)
458458
public function getRandomId()
459459
{
460460
if (!isset($this->_random)) {
461-
$this->_random = uniqid(mt_rand());
461+
$this->_random = uniqid((string)mt_rand());
462462
}
463463

464464
return $this->_random;

0 commit comments

Comments
 (0)