Reference · Deterministic 2D physics
hashNumbersfunction
A 32-bit FNV-1a hash of a list of numbers, taken over the bits of each as a 64-bit float.
Import it
import { hashNumbers } from "@johnmorrisdotca/karakuri/physics";
Definition
function hashNumbers(values: ArrayLike<number>): string
Parameters
| Name | Type | Description |
|---|---|---|
values | ArrayLike<number> | Numbers to hash, or localized-message placeholders specified by the signature. |
Returns
string
A 32-bit FNV-1a hash of a list of numbers, taken over the bits of each as a 64-bit float.
Examples
import { hashNumbers } from "@johnmorrisdotca/karakuri/physics";
console.log(hashNumbers([1,2,3]));b1d0bab2What it prints (run when this page was built)