public function __construct(Generator $generator, $length = 32) { $this->generator = $generator; $this->length = $length; }