phash: allow collisions if the hash target is the same
authorH. Peter Anvin <hpa@zytor.com>
Mon, 26 May 2008 01:17:49 +0000 (18:17 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 26 May 2008 01:17:49 +0000 (18:17 -0700)
commit14f9ea2925de991f74b2a66518a270a3529bebab
tree3dbec8b729a1a37bf7ae4178b535c150f2f887e3
parentc593173e110244f99a3498cb3e23d6c3c07bae35
phash: allow collisions if the hash target is the same

If the hash target is the same value, we can permit collisions.  This
isn't relevant for the current applications of the hash generator, but
is useful for cases where one have a number of sources for the same
target.  It's easy to check, either way.
perllib/phash.ph