random.php
Random_* Compatibility Library for using the new PHP 7 random_* API in PHP 5 projects
Tags
Table of Contents
Constants
- PHP_VERSION_ID = $RandomCompatversion[0] * 10000 + $RandomCompatversion[1] * 100 + $RandomCompatversion[2]
- RANDOM_COMPAT_READ_BUFFER = 8
Functions
- random_bytes() : string
- We don't have any more options, so let's throw an exception right now and hope the developer won't let it fail silently.
Constants
PHP_VERSION_ID
public
mixed
PHP_VERSION_ID
= $RandomCompatversion[0] * 10000 + $RandomCompatversion[1] * 100 + $RandomCompatversion[2]
RANDOM_COMPAT_READ_BUFFER
public
mixed
RANDOM_COMPAT_READ_BUFFER
= 8
Functions
random_bytes()
We don't have any more options, so let's throw an exception right now and hope the developer won't let it fail silently.
random_bytes(mixed $length) : string
Parameters
- $length : mixed