Hackzilla\PasswordGenerator\Generator\HumanPasswordGenerator::generateWordListSubset PHP 메소드

generateWordListSubset() 개인적인 메소드

private generateWordListSubset ( $min, $max )
    private function generateWordListSubset($min, $max)
    {
        $wordList = $this->generateWordList();
        $newWordList = array();
        foreach ($wordList as $word) {
            $wordLength = strlen($word);
            if ($wordLength < $min || $wordLength > $max) {
                continue;
            }
            $newWordList[] = $word;
        }
        return $newWordList;
    }