SDBM is a non-cryptographic hashing algorithm.
To use it, simply add this to your Cargo.toml:
toml
[dependencies]
sdbm = "*"
Using it is as simple as:
rust
fn main() {
dbg!(sdbm::sdbm_hash("Hello, Rustaceans!"));
}
This will print:
rust
[src/main.rs:2] sdbm::sdbm_hash("Hello, Rustaceans!") = 98379892