diff options
Diffstat (limited to 'lib/random.php')
-rw-r--r-- | lib/random.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/random.php b/lib/random.php index df87439..398c129 100644 --- a/lib/random.php +++ b/lib/random.php @@ -68,9 +68,12 @@ if (PHP_VERSION_ID < 70000) { * 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. */ - throw new Exception( - 'There is no suitable CSPRNG installed on your system' - ); + function random_bytes() + { + throw new Exception( + 'There is no suitable CSPRNG installed on your system' + ); + } } } if (!function_exists('random_int')) { |