1 | <?php |
||
13 | abstract class AbstractGenerator implements Generator |
||
14 | { |
||
15 | 27 | public function getBytes($count) |
|
35 | |||
36 | /** |
||
37 | * Reads bytes from the randomness source. |
||
38 | * @param int $count number of bytes to read |
||
39 | * @return string|false The bytes read from the randomness source or false on error |
||
40 | * @throws GeneratorException If error occurs in byte generation |
||
41 | */ |
||
42 | abstract protected function readBytes($count); |
||
43 | } |
||
44 |