Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 80% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | class Tiqr_Random |
||
29 | { |
||
30 | /** |
||
31 | * Generate $length cryptographically secure pseudo-random bytes |
||
32 | * Throws when requested number of bytes cannot be generated |
||
33 | * |
||
34 | * @param int $length the number of bytes to generate. |
||
35 | * @return string containing $length cryptographically secure pseudo-random bytes |
||
36 | * |
||
37 | * @throws Exception, Error, TypeError |
||
38 | */ |
||
39 | 5 | public static function randomBytes($length) |
|
51 | } |