Random Compat Versions Save

PHP 5.x support for random_bytes() and random_int()

v2.0.12

6 years ago
  • Minor docblock issue that's breaking Psalm downstream.

v2.0.11

6 years ago
  • Minor docblock corrections.
  • Re-issuing a PHP Archive to attempt to address an issue with the Phar provided. See #134.

v2.0.10

7 years ago
  • Mcrypt can now be used on PHP < 5.3.7 if you're not on Windows.
  • Minor boyscouting changes.

v1.4.2

7 years ago

Backported changes from version 2:

  • Version 2.0.10 - 2017-03-13
    • Mcrypt can now be used on PHP < 5.3.7 if you're not on Windows.
  • Version 2.0.9 - 2017-03-03
    • More Psalm integration fixes.
  • Version 2.0.8 - 2017-03-03
    • Prevent function already declared error for random_int() caused by misusing the library (really you should only ever include lib/random.php and never any of the other files). See #125.
  • Version 2.0.6, 2.0.7 - 2017-02-27
    • Just updates to psalm.xml to silence false positives.
  • Version 2.0.5 - 2017-02-27
    • Run random_compat through the static analysis tool, psalm, as part of our continuous integration process.
    • Minor readability enhancements (#122 and several docblock changes).
  • Version 2.0.4 - 2016-11-07
    • Don't unnecessarily prevent mcrypt_create_iv() from being used. See #111.
  • Version 2.0.3 - 2016-10-17
  • Version 2.0.2 - 2016-04-03
    • Added a consistency check (discovered by Taylor Hornby in his PHP encryption library). It wasn't likely causing any trouble for us.

v2.0.9

7 years ago

More Psalm integration fixes.

v2.0.8

7 years ago

Prevent function already declared error for random_int() caused by misusing the library (really you should only ever include lib/random.php and never any of the other files). See #125.

v2.0.7

7 years ago

Apparently psalm locally works, but psalm on Travis CI likes to randomly fail to recognize that a constant exists when it does.

Yeah.... no.

I didn't bother updating the changelog. It's a ditto for 2.0.6.

v2.0.6

7 years ago
  • Just an update to psalm.xml to silence false positives.

v2.0.5

7 years ago
  • Run random_compat through the static analysis tool, psalm, as part of our continuous integration process.
  • Minor readability enhancements (#122 and several docblock changes).

v2.0.4

7 years ago
  • Don't unnecessarily prevent mcrypt_create_iv() from being used. See #111.

Please speak up if this change causes issues for you.