
The random_compat polyfill provides simple interfaces for cryptographically secure random number generators added in PHP 7.0.0: * random_bytes(int) generates an arbitrary number of random bytes * random_int(int, int) returns a random integer between two given values (inclusive)