std::hash::fnv¶
Status: experimental
FNV-1a non-cryptographic hash (32-bit, 64-bit).
API details and source¶
The implementation source contains the complete declarations and implementation notes. The table below lists canonical Gossamer call signatures; every item name links directly to its implementation file.
| Item | Canonical signature or declaration | Description |
|---|---|---|
hash32 |
fn hash32(data: Vec<u8>) -> i64 |
32-bit FNV-1a of a byte slice. |
hash64 |
fn hash64(data: Vec<u8>) -> i64 |
64-bit FNV-1a of a byte slice. |
hash_string |
fn hash_string(text: String) -> i64 |
64-bit FNV-1a of a String. |