Subject: | Digest collision possible |
It's quite easy to construct two different arrays or hashes which have the same fingerprint. For example:
$ perl -MHash::MD5=sum_array -MTest::More=no_plan -e 'isnt sum_array([1,2]), sum_array([q{1","2}])'
not ok 1
# Failed test at -e line 1.
# got: '9539d9b288df67c71407a1701e2b99d6'
# expected: anything else
1..1
# Looks like you failed 1 test of 1.