1 | <?php |
||
6 | class File implements EntropyGeneratorInterface |
||
7 | { |
||
8 | private $file; |
||
9 | private $length; |
||
10 | |||
11 | /** |
||
12 | * @param string $file |
||
13 | * @param int $length |
||
14 | */ |
||
15 | public function __construct($file = '/dev/urandom', $length = 512) |
||
20 | |||
21 | /** |
||
22 | * @return string |
||
23 | * @throws Exception |
||
24 | */ |
||
25 | public function generate() |
||
34 | } |
||
35 |