Random Compat Versions Save

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

v2.0.21

2 years ago
  • Fix #175 - Fix CAPICOM usage on Windows
  • Widen PHPUnit version range
  • Test PHP 8.1 in GitHub Actions (thanks @jrfnl!)
  • Fix unit tests on PHP 8.1

v2.0.20

3 years ago
  • Switched from Travis CI to Github Actions
  • Minor whitespace change (never-ending Scrutinizer suggestion)

v2.0.19

3 years ago
  • Adds support for PHP 8 projects in Composer constraint
  • Fixes Travis CI for future development (Note: This required largely disabling Psalm.)

v2.0.18

5 years ago
  • If /dev/urandom cannot be read on Unix-based operating systems, a Exception with a specific error message will be thrown.
  • Fixed Psalm nits.
  • Updated the README to include a reference to the support contract offering by Paragon Initiative Enterprises.

v2.0.17

5 years ago
  • Version 2.0.16 failed Psalm checks on PHP v5.6 with Psalm v1. We could not reproduce this failure locally, so we've suppressed the MissingReturnType check (that is to say, demoted it to "info").

v2.0.16

5 years ago
  • Fixed type-checking consistencies that forced us to use Psalm in non-strict mode (i.e. totallyTyped="false").
  • README cleanup, added a header to the Version 9.99.99 section.
    • If you're confused by v9.99.99 and it's causing stuff to break, see this section of the README for the solution to your problem.
  • Trimmed down and annotated our psalm.xml file with explanations for why each assertion is suppressed.

v2.0.15

5 years ago
  • A reported, but difficult to reproduce, problem with file inclusion on some Windows machines was fixed by replacing / with DIRECTORY_SEPARATOR. For most users (i.e. not running Windows) this change should be of zero consequence. For everyone else, it should mean random_compat magically works when it didn't before.

v2.0.14

5 years ago
  • Update version information.
  • Updated README with better instructions, including new information about the v9.99.99 tag.

v2.0.13

5 years ago

v1.4.3

6 years ago
  • Fix version number in constant in lib/random.php
  • Upgrade your dependency from ^1 to ^1|^2 if you want other changes (i.e. better compatibility with type-safety), because the v2 branch is where most of the development effort is focused. Continued support for v1.x is considered "only for emergencies".