UNPKG

murmurhash2

Version:

MurmurHash2 implementation with support for Unicode

10 lines (9 loc) 259 B
/** * Calculate the murmurhash2 for a given string and seed. * * @param str The string to calculate the Murmur2 hash for. * @param seed The seed. * * @returns The Murmurhash2 hash. */ export declare function murmur2(str: string, seed: number): number;