lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


This test (from the distribution) seems to fail with probability 1/256 (provided >= 1 sec. is allowed between the tests):

  assert(md5.crypt('a', 'a') ~= md5.crypt('a', 'b'))

This test always fails:

  local seed = '\154\21\104\72'
  assert(md5.crypt('a','a',seed) ~= md5.crypt('a','b',seed))

Whether this behavior is due to the md5 algorithm, or is this an implementation fault?

--
Shmuel