ExKits.Crypto.Fnv1a (ex_kits v0.2.8)

View Source

Hashes terms using the FNV-1a 32-bit algorithm.

Examples

iex> ExKits.Crypto.Fnv1a.hash({1, 2})
2761922969
iex> ExKits.Crypto.Fnv1a.hash("this thing")
891900385

Summary

Functions

hash(term)

@spec hash(term()) :: integer()