Hackzilla\PasswordGenerator\Generator\HumanPasswordGenerator::generateWordListSubset PHP Method

generateWordListSubset() private method

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;
    }