Add javadoc to generatePassword()