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

WordPress Trac noreply at wordpress.org
Thu May 19 08:16:52 UTC 2022

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

Comment (by marekdedic):

 plugin author here, thanks for the heads up. I'll change it so that you
 can go forward with this change.

 I am a bit stumped as to how this code even came to be - I was definitely
 counting on it being a random number and not 0... :/

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

More information about the wp-trac mailing list