[wp-trac] [WordPress Trac] #55194: wp_rand( 0, 0) result in random integer

WordPress Trac noreply at wordpress.org
Wed Jun 8 13:17:41 UTC 2022


#55194: wp_rand( 0, 0)  result in random integer
-------------------------------------------------+-------------------------
 Reporter:  mlajo                                |       Owner:  audrasjb
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.1
Component:  General                              |     Version:  5.9
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-dev-  |     Focuses:  docs
  note                                           |
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 In [changeset:"53479" 53479]:
 {{{
 #!CommitTicketReference repository="" revision="53479"
 Tests: Correct an assertion in `wp_rand()` tests.

 The function returns non-negative integers, which includes zero.

 Follow-up to [53473], [53477].

 See #55194.
 }}}

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


More information about the wp-trac mailing list