From 81d5603ef4ad6146c4440bcc3fb4aa4c1a48df0a Mon Sep 17 00:00:00 2001 From: Colin O'Dell Date: Wed, 19 Jul 2017 13:00:51 -0400 Subject: [PATCH] Use uniqid() to avoid collisions --- src/PathPreserver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PathPreserver.php b/src/PathPreserver.php index 8cac857..fecf548 100644 --- a/src/PathPreserver.php +++ b/src/PathPreserver.php @@ -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);