[wp-trac] [WordPress Trac] #59239: wp_generate_uuid4 collisions

WordPress Trac noreply at wordpress.org
Thu Mar 19 00:02:50 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):

 The problem with throwing an exception is that it breaks websites. It
 wasn't a lot of extra logic to try random_int and only if that is also not
 available fallback to mt_rand so I implemented that.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59239#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list