Skip to content

Commit

Permalink
Fixed added dedicated to cart, added mt_rand to getId() method
Browse files Browse the repository at this point in the history
  • Loading branch information
tafid authored and hiqsol committed Jun 14, 2019
1 parent 3df630a commit dfce019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cart/ServerOrderDedicatedProduct.php
Expand Up @@ -91,7 +91,7 @@ private function ensureRelatedData()
public function getId()
{
if ($this->_id === null) {
$this->_id = hash('crc32b', implode('_', ['server', 'order', 'dedicated', $this->_model->id]));
$this->_id = hash('crc32b', implode('_', ['server', 'order', 'dedicated', $this->_model->id, mt_rand()]));
}

return $this->_id;
Expand Down

0 comments on commit dfce019

Please sign in to comment.