std/xxhash
XXH64, the fast non-cryptographic hash zstd uses for its frame checksum, in pure Milo. The output matches xxhsum -H64 bit for bit.
milo
from "std/xxhash" import { Xxhash }Example
milo
print(Xxhash.hex64("hello", 0)) // 26c7827d889f6da3API reference
Xxhash
milo
pub struct XxhashXxhash namespace — Xxhash.hash64(src, seed) u64, Xxhash.hex64(src, seed) hex string.
Xxhash.hash64
milo
fn Xxhash.hash64(src: &string, seed: u64): u64Xxhash.hex64
milo
fn Xxhash.hex64(src: &string, seed: u64): string