generate random password

This commit is contained in:
Bob Sun 2017-02-11 22:00:04 +08:00
parent 95680138a4
commit 9f3b13f8b0
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
3 changed files with 18 additions and 1 deletions

View file

@ -23,6 +23,6 @@ class FillPasswordTableViewCell: UITableViewCell {
}
@IBAction func generatePassword(_ sender: UIButton) {
contentTextField.text = "4-r4d0m-p455w0rd"
contentTextField.text = Utils.randomString(length: 16)
}
}