-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate MT_RAND_PHP #11560
Deprecate MT_RAND_PHP #11560
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like at one point it might make sense to deprecate the mode parameter all together.
Yes, it should probably be deprecated once there is only one legal value left (i.e. as part of the removal of MT_RAND_PHP). At that point Mt19937 with MT_RAND_PHP will also fail to unserialize. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Thank you!
see https://wiki.php.net/rfc/deprecations_php_8_3#mt_rand_php