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

x/wmill/deps.ts>Murmurhash3

Open-source developer platform to turn scripts into workflows and UIs. Fastest workflow engine (5x vs Airflow). Open-source alternative to Airplane and Retool.
Go to Latest
class Murmurhash3
import { Murmurhash3 } from "https://deno.land/x/wmill@v1.346.1/deps.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)

Incrementally add a string to this hash

reset(seed?: number)

Reset the hash object for reuse

result(): number

Get the result of this hash