ErrLookup › paragonie/random_compat

paragonie/random_compat

PHP 5.x support for random_bytes() and random_int() · PHP · 17 source files

Analyzed at b5d188cc9d on 2026-09-13. 15 documented errors.

Code / MessageTypeSeverityTags
RandomCompat_strlen() expects a string
exception error php, typeerror, string-type, random-compat
random_bytes(): $bytes must be an integer
exception error php, type-error, argument-validation, random-bytes
Error reading from source device
exception error
RandomCompat_substr(): Third argument should be an integer…
exception error php, typeerror, substr, integer-argument
RandomCompat_substr(): First argument should be a string
exception error php, typeerror, substr, argument-validation
Could not gather sufficient random data
exception critical php, cryptography, randomness, environment
Environment misconfiguration: /dev/urandom cannot be read.
exception critical php, environment, urandom, entropy, permissions
Length must be greater than 0
exception error php, argument-out-of-range, random-bytes, validation
RandomCompat_substr(): Second argument should be an integer
exception error php, typeerror, substr, integer-argument
COM does not exist
exception critical php, environment, windows, com, missing-extension
Expected an integer.
exception error php, typeerror, integer-type, input-validation
There is no suitable CSPRNG installed on your system
exception critical php, csprng, environment, missing-dependency, crypto
random_int(): $min must be an integer
exception error php, typeerror, argument-validation, randomness
Minimum value must be less than or equal to the maximum…
exception error php, argument-out-of-range, randomness, validation
random_int(): $max must be an integer
exception error php, typeerror, argument-validation, randomness