Re: Hashing a procedure object reliably

[email protected] Sun, 13 Apr 2025 20:41:52 +0200
Newsgroups gmane.lisp.guile.user
Message-ID <Z/[email protected]>
On Sun, Apr 13, 2025 at 07:59:21PM +0200, Maxime Devos wrote:
> 
> On 13/04/2025 19:47, [email protected] wrote:
> > On Sun, Apr 13, 2025 at 07:03:56PM +0200, Maxime Devos wrote:
> > 
> > [...]
> > 
> > > > Typical hashing of the non-cryptographic kind aren't designed to
> > > > virtually eliminate hash collisions [...]
> > Nit: given a "reasonable" hash, the collision probability should be
> > the same for crypto or non-crypto hash (for the same width, for "random"
> > input). [...]
> 
> Many hashes aren't reasonable, then.When looking at documents describing the
> quality of (non-crypto) string hash functions, you can sometimes see
> discussion about how certain hash values are unreachable and how to choose
> parameters such that hashes are more 'spread out' (and hence, making
> collisions less common), trade-offs between speed of hashing and risk of
> collision ...

Oh, there are quite a few "good" non cryptographic hash functions [1].

Of course, it's possible to contrive an input for which they do fail.
Cheers

[1] https://en.wikipedia.org/wiki/Non-cryptographic_hash_function
-- 
t
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZ/wFaQAKCRAFyCz1etHa
RiMsAJ9zLxCHWgBE42RQBL+xdA4cLv8aCQCff/7hJK20/V6ZMOdtFKKn2Qyr64I=
=ZA6J
-----END PGP SIGNATURE-----