nur-sery/nur_src/passwd/PasswordGenerator.php

11 lines
308 B
PHP
Raw Normal View History

2024-04-04 16:47:29 +04:00
<?php
namespace nur\passwd;
class PasswordGenerator extends AbstractGenerator {
function generate(?int $nbBlocks=null, ?int $nbPuncts=null, ?int $seed=null): string {
# toujours réinitialiser le seed
if ($seed === null) mt_srand();
return parent::generate($nbBlocks, $nbPuncts, $seed);
}
}