['.', '/'] + ['0'..'9', 'A'..'Z', 'a'..'z'].collect do |x| x.to_a end.flatten
102 103 104 105 106
# File 'lib/active_ldap/user_password.rb', line 102 def generate(length) salt = "" length.times {salt << CHARS[rand(CHARS.length)]} salt end