From 642321ea7029ea2ccb996054eab2b1d812c0c4e4 Mon Sep 17 00:00:00 2001 From: Fabien Villepinte Date: Sun, 16 Jan 2022 14:47:42 +0100 Subject: [PATCH 1/2] Improve signature of random_bytes() --- dictionaries/CallMap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dictionaries/CallMap.php b/dictionaries/CallMap.php index 9f31a7a44d4..96c213e7c74 100644 --- a/dictionaries/CallMap.php +++ b/dictionaries/CallMap.php @@ -10505,7 +10505,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', 'start'=>'mixed', 'end'=>'mixed', 'step='=>'int|float'], 'RangeException::__clone' => ['void'], From dd643264799cce5e7e3db58bf3c5780bd20a3884 Mon Sep 17 00:00:00 2001 From: Fabien Villepinte Date: Sun, 16 Jan 2022 14:49:16 +0100 Subject: [PATCH 2/2] Update CallMap_historical too --- dictionaries/CallMap_historical.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dictionaries/CallMap_historical.php b/dictionaries/CallMap_historical.php index 362a181db8c..fd9efc2f24a 100644 --- a/dictionaries/CallMap_historical.php +++ b/dictionaries/CallMap_historical.php @@ -14642,7 +14642,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', 'start'=>'mixed', 'end'=>'mixed', 'step='=>'int|float'], 'rar_allow_broken_set' => ['bool', 'rarfile'=>'RarArchive', 'allow_broken'=>'bool'],