MCPcopy Create free account
hub / github.com/TanStack/db / randomHash

Function randomHash

packages/db-ivm/src/hashing/murmur.ts:14–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12export type Hash = number
13
14export function randomHash() {
15 return (Math.random() * (2 ** 31 - 1)) >>> 0
16}
17
18export interface Hasher {
19 update: (val: symbol | string | number | bigint) => void

Callers 2

hash.tsFile · 0.85
murmur.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected