Increase entropy of uniqid

This is to avoid conflicts if two folders are being created at the exact same time.
This commit is contained in:
Adrien Loison 2015-11-05 10:35:37 -08:00
parent 6c97141679
commit c4c6dddb20

View File

@ -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;
}