8000 bug #20137 Add "more entropy" to every uniqid() call (javiereguiluz) · symfony/symfony@8c4ed1b · GitHub
[go: up one dir, main page]

Skip to content

Commit 8c4ed1b

Browse files
committed
bug #20137 Add "more entropy" to every uniqid() call (javiereguiluz)
This PR was merged into the 3.2-dev branch. Discussion ---------- Add "more entropy" to every uniqid() call | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Same as #20132 but for the master branch Commits ------- 50a8c1f Add "more entropy" to every uniqid() call
2 parents 669478d + 50a8c1f commit 8c4ed1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Cache/Adapter/PhpArrayAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public function warmUp(array $values)
147147
$dump .= "\n);\n";
148148
$dump = str_replace("' . \"\\0\" . '", "\0", $dump);
149149

150-
$tmpFile = uniqid($this->file);
150+
$tmpFile = uniqid($this->file, true);
151151

152152
file_put_contents($tmpFile, $dump);
153153
@chmod($tmpFile, 0666);

0 commit comments

Comments
 (0)
0