Module | Authlogic::Random |
In: |
lib/authlogic/random.rb
|
Handles generating random strings. If SecureRandom is installed it will default to this and use it instead. SecureRandom comes with ActiveSupport. So if you are using this in a rails app you should have this library.
SecureRandom | = | (defined?(::SecureRandom) && ::SecureRandom) || (defined?(::ActiveSupport::SecureRandom) && ::ActiveSupport::SecureRandom) |
FRIENDLY_CHARS | = | ("a".."z").to_a + ("A".."Z").to_a + ("0".."9").to_a |