4 releases
0.1.3 | Feb 15, 2019 |
---|---|
0.1.2 | Feb 15, 2019 |
0.1.1 | Feb 14, 2019 |
0.1.0 | Feb 14, 2019 |
#1629 in Algorithms
6KB
77 lines
sdbm
SDBM is a non-cryptographic hashing algorithm.
Usage
To use it, simply add this to your Cargo.toml:
[dependencies]
sdbm = "*"
Using it is as simple as:
fn main() {
dbg!(sdbm::sdbm_hash("Hello, Rustaceans!"));
}
This will print:
[src/main.rs:2] sdbm::sdbm_hash("Hello, Rustaceans!") = 98379892