module RIMS::Test::PseudoAuthenticationUtility

Public Class Methods

make_pseudo_random_string_source(random_seed) click to toggle source
# File lib/rims/test.rb, line 61
def make_pseudo_random_string_source(random_seed)
  r = Random.new(random_seed)
  proc{ r.bytes(16).each_byte.map{|c| format('%02x', c ) }.join('') }
end
make_pseudo_time_source(src_time) click to toggle source
# File lib/rims/test.rb, line 52
def make_pseudo_time_source(src_time)
  t = src_time
  proc{
    t = t + 1
    t.dup
  }
end

Private Instance Methods

make_pseudo_random_string_source(random_seed) click to toggle source
# File lib/rims/test.rb, line 61
def make_pseudo_random_string_source(random_seed)
  r = Random.new(random_seed)
  proc{ r.bytes(16).each_byte.map{|c| format('%02x', c ) }.join('') }
end
make_pseudo_time_source(src_time) click to toggle source
# File lib/rims/test.rb, line 52
def make_pseudo_time_source(src_time)
  t = src_time
  proc{
    t = t + 1
    t.dup
  }
end