Use "more entropy" option for uniqid()
This commit is contained in:
parent
80577f96bf
commit
4403e28ab0
@ -86,7 +86,7 @@ class ProxyDumperTest extends \PHPUnit_Framework_TestCase
|
|||||||
$definitions = array(
|
$definitions = array(
|
||||||
array(new Definition(__CLASS__), true),
|
array(new Definition(__CLASS__), true),
|
||||||
array(new Definition('stdClass'), true),
|
array(new Definition('stdClass'), true),
|
||||||
array(new Definition('foo'.uniqid()), false),
|
array(new Definition(uniqid('foo', true)), false),
|
||||||
array(new Definition(), false),
|
array(new Definition(), false),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ EOF
|
|||||||
$template .= fread(STDIN, 1024);
|
$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);
|
$filesInfo = $this->getFilesInfo($twig, $filenames);
|
||||||
|
Reference in New Issue
Block a user