[wp-trac] [WordPress Trac] #59239: wp_generate_uuid4 collisions
WordPress Trac
noreply at wordpress.org
Wed Mar 18 22:37:15 UTC 2026
#59239: wp_generate_uuid4 collisions
--------------------------------------------+-----------------------
Reporter: joppuyo | Owner: jorbin
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 7.0
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing commit | Focuses:
--------------------------------------------+-----------------------
Comment (by jorbin):
@siliconforks `mt_rand` is a fallback in the scenario where someone is
using `wp_generate_uuid4` extremely early. If `random_int` would to be
used, the logic in wp_rand would need to be duplicated including, a
fallback for when `random_int` cannot find an appropriate source of
randomness.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59239#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list