From ac879a1b675e381326d3f2a440b81af3c1a7a374 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Thu, 22 Jun 2023 17:45:06 +0200 Subject: [PATCH] Update random_int and random_bytes exception thrown --- random/random.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/random/random.php b/random/random.php index d4201eb78..c63c8e3dc 100644 --- a/random/random.php +++ b/random/random.php @@ -92,7 +92,7 @@ function getrandmax(): int {} * @param int $length The length of the random string that should be returned in bytes. * @return string Returns a string containing the requested number of cryptographically secure random bytes. * @since 7.0 - * @throws Exception if an appropriate source of randomness cannot be found. + * @throws Random\RandomException if an appropriate source of randomness cannot be found. */ function random_bytes(int $length): string {} @@ -103,7 +103,7 @@ function random_bytes(int $length): string {} * @param int $max The highest value to be returned, which must be less than or equal to PHP_INT_MAX. * @return int Returns a cryptographically secure random integer in the range min to max, inclusive. * @since 7.0 - * @throws Exception if an appropriate source of randomness cannot be found. + * @throws Random\RandomException if an appropriate source of randomness cannot be found. */ function random_int(int $min, int $max): int {} }