Esc

hash_bytes

procedureextensionexperimentalsince 0.36.1Source
  • macOS: hash_bytes works on macOS
  • Linux: hash_bytes works on Linux
  • Windows: hash_bytes works on Windows
  • Wasm: hash_bytes works on Wasm

Hashes bytes with Meow 0.5, returning the low and high little-endian 64-bit lanes. This scalar implementation works without AES-NI; it is slower than MeowHash.

Signature

hash_bytes :: (bytes: [] u8, seed: [128] u8 = Meow.MeowDefaultSeed) -> [2] u64
Example↗
digest := hash_bytes(cast([] u8) "abc");
assert(digest[0] == 0x19f773ec430acc3b);
assert(digest[1] == 0x5f6d236b424c9ab4);