[wp-trac] [WordPress Trac] #28633: Generate better random numbers
WordPress Trac
noreply at wordpress.org
Mon Sep 14 05:36:49 UTC 2015
#28633: Generate better random numbers
-------------------------------------------+------------------------
Reporter: sarciszewski | Owner: dd32
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 4.4
Component: Security | Version:
Severity: normal | Resolution:
Keywords: needs-testing has-patch early | Focuses:
-------------------------------------------+------------------------
Comment (by dd32):
Fun facts: `wp_rand()` only returns positive numbers (no matter the
input), and it also doesn't care about the order of `$min` and `$max`.
@sarciszewski Since PHP's implementation of `random_int()` has changed in
the last few days since PHP7-RC2 was released (They've switched from PHP
warnings to Exceptions, which your compat library deals with), I'd like to
test this against PHP7-RC3 which is due to be released at the end of the
week. I'm having a hard time comparing the compat library and PHP7's
behaviours to ensure we don't have any issues at release time.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28633#comment:49>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list