Skip to content

Commit

Permalink
Use uniqid() in AbstractASTArtifact::getId() instead of microtime() b…
Browse files Browse the repository at this point in the history
…ecause on Windows microtime() creates collisions and tests then fail.
  • Loading branch information
KacerCZ authored and emirb committed Nov 20, 2017
1 parent 9077570 commit 12a229d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/php/PDepend/Source/AST/AbstractASTArtifact.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public function setName($name)
public function getId()
{
if ($this->id === null) {
$this->id = md5(microtime());
$this->id = md5(uniqid('', TRUE));
}
return $this->id;
}
Expand Down

0 comments on commit 12a229d

Please sign in to comment.