UNPKG

foxts

Version:

Opinionated collection of common TypeScript utils by @SukkaW

13 lines (11 loc) 386 B
/** * FNV-1a Hash implementation * @author Travis Webb (tjwebb) <me@traviswebb.com> * * Ported from https://github.com/tjwebb/fnv-plus/blob/master/index.js * * Simplified, optimized and add modified for 52 bit, which provides a larger hash space * and still making use of Javascript's 53-bit integer space. */ declare function fnv1a52(str: string): number; export { fnv1a52 };