From 455337417f3b55d7e2b20b4a563dbf824eb6c933 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 3 Oct 2016 10:38:56 +0200 Subject: [PATCH 1/2] Use "more entropy" option for uniqid() --- src/Symfony/Bridge/Twig/Command/LintCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bridge/Twig/Command/LintCommand.php b/src/Symfony/Bridge/Twig/Command/LintCommand.php index 4d8b9ce1691fb..df603f93fddda 100644 --- a/src/Symfony/Bridge/Twig/Command/LintCommand.php +++ b/src/Symfony/Bridge/Twig/Command/LintCommand.php @@ -109,7 +109,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $template .= fread(STDIN, 1024); } - return $this->display($input, $output, array($this->validate($twig, $template, uniqid('sf_')))); + return $this->display($input, $output, array($this->validate($twig, $template, uniqid('sf_', true)))); } $filesInfo = $this->getFilesInfo($twig, $filenames); From 67d2b09f13b2cfe8c1b3ce9ac7fe6816afdb1bb9 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Mon, 3 Oct 2016 16:04:09 +0200 Subject: [PATCH 2/2] Improved another uniqid() call --- .../ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php index 0b98419f16203..6d86bd24d2d1a 100644 --- a/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php +++ b/src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php @@ -86,7 +86,7 @@ public function getProxyCandidates() $definitions = array( array(new Definition(__CLASS__), true), array(new Definition('stdClass'), true), - array(new Definition('foo'.uniqid()), false), + array(new Definition(uniqid('foo', true)), false), array(new Definition(), false), );