# File lib/rudy/utils.rb, line 266 266: def strand( len=8, safe=true ) 267: chars = ("a".."z").to_a + ("0".."9").to_a 268: chars.delete_if { |v| %w(i l o 1 0).member?(v) } if safe 269: str = "" 270: 1.upto(len) { |i| str << chars[rand(chars.size-1)] } 271: str 272: end