lib-misc-utils · crate

foldhash

Libraryenvironment

Kinogaki's own foldhash, published under the crates.io name so the frozen hashbrown resolves to it through [patch.crates-io] for its default hasher.

Repository
lib-misc-utils (kinogaki/lib-misc-utils)
Folder
libs/lib-misc-utils/crates/foldhash
Source
1 file, 144 lines
Tests
1 file, 71 lines
This crate foldhash
depends onused by tests alonedependencies for tests alone are listed below, not drawn

What it is

Kinogaki's own foldhash, published under the crates.io name so the frozen hashbrown resolves to it through [patch.crates-io] for its default hasher. It is not upstream foldhash: it is our own fast, seeded, non-cryptographic hash with the fast::RandomState hashbrown builds.

Each 64-bit word is mixed with a folded multiply (the 128-bit product of two words, high half xor low half), keyed by the builder's random seeds; the result's high bits, which hashbrown's control bytes use, depend on every input bit. Seeds are random per process and differ per builder, as upstream's, so map iteration order is not stable between runs.

Depends on

None.

Third-party

None.

Used by

None.

Third-party crates using it

hashbrown

Modules

Public types and traits

At the crate root

Structs FoldHasherRandomState