Needs work
Project:
Drupal core
Version:
main
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Nov 2020 at 12:18 UTC
Updated:
17 Sep 2023 at 21:07 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alexpottThis won't result in any huge speed up but it will remove a notice when profiling on blackfire so less noise.
Comment #7
renrhafRerolled patch for Drupal 9.5.x
+1 RTBC
Comment #8
renrhafComment #11
smustgrave commentedSeems there were some errors errors in the build.
And if this is going to be enforced think it will need a phpstan check with a test case
Comment #15
mfbIt's definitely a good idea to use the second argument because of the issue of non-unique IDs on some platforms, as well as the fact that all platforms could have non-unique IDs when the system clock changes. But given that uniqid() wastefully sleeps as described in the issue summary, I'd propose closing this issue in favor of #2972100: Remove usage of uniqid.