|
|
Subscribe / Log in / New account

A status update on Debian's reproducible builds

A status update on Debian's reproducible builds

Posted Sep 24, 2015 12:53 UTC (Thu) by Wol (subscriber, #4433)
In reply to: A status update on Debian's reproducible builds by jnareb
Parent article: A status update on Debian's reproducible builds

> Nb. random hash order is a feature - a protection against DoS attack on hash's hash function.

It's also an inherent part of a linear hash algorithm - buckets are created and destroyed continuously, and must be able to hold multiple keys. So a linear scan of the hash table - while keys will be approximately in the same order - will return keys with an identical hash function in random order. Sorting them in their buckets would be an unacceptable overhead, even if it's only a small overhead.

(I don't know for certain, but linear hashing definitely isn't unique to Pick - it's used by BerkeleyDB aka Sleepycat, and I believe it's the algorithm behind hashes in Perl and Python.)

Cheers,
Wol


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds