From 8dc1f27c04549c39abc751c817c011db88301ef2 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Sun, 16 Jan 2022 16:27:05 +0100 Subject: [PATCH] Improve signature of random_bytes() --- resources/functionMap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/functionMap.php b/resources/functionMap.php index 2bf2477cb6..89d41be789 100644 --- a/resources/functionMap.php +++ b/resources/functionMap.php @@ -9056,7 +9056,7 @@ 'radius_strerror' => ['string', 'radius_handle'=>'resource'], 'rand' => ['int', 'min'=>'int', 'max'=>'int'], 'rand\'1' => ['int'], -'random_bytes' => ['string', 'length'=>'int'], +'random_bytes' => ['non-empty-string', 'length'=>'positive-int'], 'random_int' => ['int', 'min'=>'int', 'max'=>'int'], 'range' => ['array', 'low'=>'int|float|string', 'high'=>'int|float|string', 'step='=>'int|float'], 'RangeException::__clone' => ['void'],