Added simple generatePassword method