Skip to content
velt/hash exports

velt/hash

API reference

A stable, non-cryptographic hash for sharding, bucketing and consistent hashing. For a walkthrough, read the guide.

import { fnv1a64 } from "velt/hash";

Exports

function

fnv1a64

#std/hash/fnv.vlt:6

Re-exported from velt/hash/fnv

function fnv1a64(s: string): u64

The 64-bit FNV-1a hash of the UTF-8 bytes of s.

function

fnv1a64Bytes

#std/hash/fnv.vlt:11

Re-exported from velt/hash/fnv

function fnv1a64Bytes(data: u8[]): u64

The 64-bit FNV-1a hash of data.