rust-lang / rustc-stable-hash

A stable hashing algorithm used by rustc: cross-platform, deterministic, not secure
Apache License 2.0
5 stars 3 forks source link

Make `StableHasher::finish` return a small hash #6

Closed Urgau closed 3 months ago

Urgau commented 3 months ago

This PR changes SipHasher128 and StableHasher so that their finish implementation are no longer fatal and return a "small hash".

Implements https://github.com/rust-lang/rustc-stable-hash/pull/3#discussion_r1647713568 r? @michaelwoerister

michaelwoerister commented 3 months ago

Thank you, @Urgau!