Skip to content

Commit

Permalink
Update random_int and random_bytes exception thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet authored and isfedorov committed Jul 16, 2023
1 parent 3bb9c8a commit ac879a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions random/random.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

Expand All @@ -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 {}
}
Expand Down

0 comments on commit ac879a1

Please sign in to comment.