[Rpm-maint] [rpm-software-management/rpm] Please support smaller build-ids (#950)
Rafael Ávila de Espíndola
notifications at github.com
Sat Nov 23 17:53:32 UTC 2019
This is the birthday problem, so a good 64 bit hash needs about 32 bit worth of hashes for a collision. Note that there is precedent for using only 64 bits. The dwarf standard (http://www.dwarfstd.org/doc/DWARF5.pdf section 7.32 "Type Signature Computation") uses the last 8 bytes of md5 for type signatures.
As for the quality, I think xxhash is very good (http://cyan4973.github.io/xxHash/) , but I don't have any detailed knowledge of hashes.
If we really need 128 bits, which hash would you suggest for a fast buildid? Farmhash comes to mind.
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/950#issuecomment-557818947
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20191123/a718a7fe/attachment.html>
More information about the Rpm-maint
mailing list