Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/live/utils/hasher.ts>MurmurHash3

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Latest
class MurmurHash3
import { MurmurHash3 } from "https://deno.land/x/live@1.107.0/utils/hasher.ts";

JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)

Constructors

new
MurmurHash3(key?: string, seed?: number)

Create a MurmurHash3 object for incremental hashing.

Properties

private
h1: number
private
k1: number
private
len: number
private
rem: number

Methods

hash(key: string): void

Incrementally add a string to this hash

reset(seed?: number): void

Reset the hash object for reuse

result(): number

Get the result of this hash