Sha256: 81196d73a6f1f612a501b8ae47cc1b3c4815e00e1ac2f07510f72bf6892419ab
Contents?: true
Size: 234 Bytes
Versions: 4
Compression:
Stored size: 234 Bytes
Contents
module Seedy module Generators def password chars = ("a".."z").to_a + ("A".."Z").to_a + ("0".."9").to_a newpass = "" 1.upto(8) { |i| newpass << chars[rand(chars.size-1)] } return newpass end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
seedy-0.6.6 | lib/seedy/generators/password.rb |
seedy-0.6.5 | lib/seedy/generators/password.rb |
seedy-0.6.4 | lib/seedy/generators/password.rb |
seedy-0.6.3 | lib/seedy/generators/password.rb |