Skip to content

Commit

Permalink
Use uniqid() to avoid collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
colinodell committed Jul 20, 2017
1 parent bc43fea commit 81d5603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PathPreserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function preserve()
continue;
}

$unique = $installPath.' '.time();
$unique = $installPath.' '.uniqid('', true);
$cacheRoot = $this->filesystem->normalizePath($this->cacheDir.'/preserve-paths/'.sha1($unique));
$this->filesystem->ensureDirectoryExists($cacheRoot);

Expand Down

0 comments on commit 81d5603

Please sign in to comment.