Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
20 | class Random |
||
21 | { |
||
22 | /** |
||
23 | * Generate a given amount of cryptographically secure random bytes. |
||
24 | * |
||
25 | * @param positive-int $length The amount of bytes required. |
||
26 | * |
||
27 | * @return string A random string of $length length. |
||
28 | * |
||
29 | * @throws \SimpleSAML\XMLSecurity\Exception\InvalidArgumentException |
||
30 | * If $length is not an integer greater than zero. |
||
31 | * @throws \SimpleSAML\XMLSecurity\Exception\RuntimeException |
||
32 | * If no appropriate sources of cryptographically secure random generators are available. |
||
33 | */ |
||
34 | public static function generateRandomBytes(int $length): string |
||
53 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths