Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9321577

Browse filesBrowse files
committed
Reword a code comment
1 parent 6185887 commit 9321577
Copy full SHA for 9321577

File tree

Expand file treeCollapse file tree

1 file changed

+2
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-4
lines changed

‎controller/upload_file.rst

Copy file name to clipboardExpand all lines: controller/upload_file.rst
+2-4Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,8 @@ Finally, you need to update the code of the controller that handles the form::
163163
*/
164164
private function generateUniqueFileName()
165165
{
166-
// uniqid() is based on timestamp,
167-
// so it creates similar and predictible file names as a result.
168-
// md5() is used to guarantee equal distribuition
169-
// and smaller predictibility of the file names.
166+
// md5() reduces the similarity of the file names generated by
167+
// uniqid(), which is based on timestamps
170168
return md5(uniqid());
171169
}
172170
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.