mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-21 10:20:05 +00:00
remove do in while line
This commit is contained in:
parent
18ba72e91b
commit
5db52db1a3
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ class MPW
|
||||||
chars = [*('A'..'Z'), *('a'..'z'), *('0'..'9')] if chars.empty?
|
chars = [*('A'..'Z'), *('a'..'z'), *('0'..'9')] if chars.empty?
|
||||||
|
|
||||||
result = ''
|
result = ''
|
||||||
while length > 62 do
|
while length > 62
|
||||||
result << chars.sample(62).join
|
result << chars.sample(62).join
|
||||||
length -= 62
|
length -= 62
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue