Skip to content
API reference

lib/seed-hash

Import
import * as api from "@fungi.computer/caps/lib/seed-hash";
Kind Export Description
function seedHash() A stable 32-bit FNV-1a hash: the same seed always lands on the same value, and short, similar seeds spread apart. Used to pick a deterministic tone, color, or pattern from an identity (a name, an Agent id) without state.
Signature
function seedHash(seed): number;

A stable 32-bit FNV-1a hash: the same seed always lands on the same value, and short, similar seeds spread apart. Used to pick a deterministic tone, color, or pattern from an identity (a name, an Agent id) without state.

Parameter Type
seed string

number