Random Extension Polyfill#

Packagist GitLab GitHub Bitbucket Gitea

This is a polyfill for the new ext-random extension that will be released with PHP 8.2.

RFC:

Requirements#

  • PHP 7.1

  • GMP extension is strongly recommended on PHP 7 and somewhat recommended on PHP 8

Installation#

composer require 'arokettu/random-polyfill'

Documentation#

TODO#

  • Keep updating with fixes from the upcoming betas and release 1.0.0 around PHP 8.2.0 rc 1

  • Empty arokettu/random-polyfill v1.99 for PHP 8.2.0 users

License#

The library is available as open source under the terms of the 3-Clause BSD License. See License for additional licenses.