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

WordPress Trac noreply at wordpress.org
Fri Feb 18 10:49:29 UTC 2022


#55194: wp_rand( 0, 0)  result in random integer
--------------------------+---------------------
 Reporter:  mlajo         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  6.0
Component:  General       |     Version:  5.9
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  docs
--------------------------+---------------------

Comment (by SergeyBiryukov):

 Something like this I think would be correct:
 {{{
  * @param int $min Optional. Lower limit for the generated number.
  *                 Accepts positive integers or zero. Default 0.
  * @param int $max Optional. Upper limit for the generated number.
  *                 Accepts positive integers. Defaults to 4294967295.
 }}}

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


More information about the wp-trac mailing list