Skip to content

Commit

Permalink
Merge pull request #157 from chbiel/uniqid-fix
Browse files Browse the repository at this point in the history
uniqid() is not unique enough so add usleep to ensure uniqueness
  • Loading branch information
julianseeger committed Feb 18, 2015
2 parents 25e2ac9 + 972c632 commit 26e14a1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,3 @@ tools:
standard: "PSR2"

php_code_coverage: true

build_failure_conditions:
- 'issues.new.exists'
2 changes: 1 addition & 1 deletion src/ParaTest/Runners/PHPUnit/Runner.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ protected function initTokens()
{
$this->tokens = array();
for ($i = 0; $i < $this->options->processes; $i++) {
$this->tokens[$i] = array('token' => $i, 'unique' => uniqid(), 'available' => true);
$this->tokens[$i] = array('token' => $i, 'unique' => uniqid($i), 'available' => true);
}
}

Expand Down

0 comments on commit 26e14a1

Please sign in to comment.