From c4c6dddb20360bf3218fadb42afdf7a8aea5229f Mon Sep 17 00:00:00 2001 From: Adrien Loison Date: Thu, 5 Nov 2015 10:35:37 -0800 Subject: [PATCH] Increase entropy of uniqid This is to avoid conflicts if two folders are being created at the exact same time. --- src/Spout/Writer/XLSX/Helper/FileSystemHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Spout/Writer/XLSX/Helper/FileSystemHelper.php b/src/Spout/Writer/XLSX/Helper/FileSystemHelper.php index bf9e350..22d23e4 100644 --- a/src/Spout/Writer/XLSX/Helper/FileSystemHelper.php +++ b/src/Spout/Writer/XLSX/Helper/FileSystemHelper.php @@ -94,7 +94,7 @@ class FileSystemHelper extends \Box\Spout\Common\Helper\FileSystemHelper */ protected function createRootFolder() { - $this->rootFolder = $this->createFolder($this->baseFolderPath, uniqid('xlsx')); + $this->rootFolder = $this->createFolder($this->baseFolderPath, uniqid('xlsx', true)); return $this; }