1 | <?php |
||
23 | abstract class AbstractSource implements \RandomLib\Source { |
||
24 | |||
25 | /** |
||
26 | * Return an instance of Strength indicating the strength of the source |
||
27 | * |
||
28 | * @return \SecurityLib\Strength An instance of one of the strength classes |
||
29 | */ |
||
30 | public static function getStrength() { |
||
33 | |||
34 | /** |
||
35 | * If the source is currently available. |
||
36 | * Reasons might be because the library is not installed |
||
37 | * |
||
38 | * @return boolean |
||
39 | */ |
||
40 | public static function isSupported() { |
||
43 | |||
44 | /** |
||
45 | * Returns a string of zeroes, useful when no entropy is available. |
||
46 | * |
||
47 | * @param int $size The size of the requested random string |
||
48 | * |
||
49 | * @return string A string of the requested size |
||
50 | */ |
||
51 | protected static function emptyValue($size) { |
||
54 | |||
55 | } |
||
56 |