Skip to content
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

replace rand() & mt_rand() by random_int() #504

Merged
merged 2 commits into from
Nov 28, 2023

Commits on Sep 24, 2023

  1. replace rand() & mt_rand() by random_int()

    These functions will be deprecated in PHP 8.3
    https://wiki.php.net/rfc/deprecations_php_8_3
    
    Replace them by random_int() which also has a userland implementation for PHP
    < 7.0 that we already use in this project (paragonie/random_compat)
    tenzap committed Sep 24, 2023
    Configuration menu
    Copy the full SHA
    6179781 View commit details
    Browse the repository at this point in the history
  2. replace mt_srand() by \Random\Engine\Mt19937 calls for php >= 8.2

    These functions will be deprecated in PHP 8.3
    See https://wiki.php.net/rfc/deprecations_php_8_3 which gives an example
    of implementation for newer version of php
    tenzap committed Sep 24, 2023
    Configuration menu
    Copy the full SHA
    181465c View commit details
    Browse the repository at this point in the history