ISecureRandom.php Interfaces, Classes and Traits ISecureRandom Class SecureRandom provides a wrapper around the random_int function to generate secure random strings. For PHP 7 the native CSPRNG is used, older versions do use a fallback.