diff options
-rw-r--r-- | lib/rbot/botuser.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rbot/botuser.rb b/lib/rbot/botuser.rb index 4e35e5f3..bed2b627 100644 --- a/lib/rbot/botuser.rb +++ b/lib/rbot/botuser.rb @@ -34,8 +34,8 @@ module Irc #
def Auth.random_password(l=8)
pwd = ""
- 8.times do
- pwd += (rand(26) + (rand(2) == 0 ? 65 : 97) ).chr
+ l.times do
+ pwd << (rand(26) + (rand(2) == 0 ? 65 : 97) ).chr
end
return pwd
end
|