module ActiveLdap::UserPassword::Salt

Constants

CHARS

Public Instance Methods

generate(length) click to toggle source
# File lib/active_ldap/user_password.rb, line 102
def generate(length)
  salt = ""
  length.times {salt << CHARS[rand(CHARS.length)]}
  salt
end