13 lines
499 B
Plaintext
13 lines
499 B
Plaintext
/**
|
|
* FNV-1a Hash implementation
|
|
* @author Travis Webb (tjwebb) <me@traviswebb.com>
|
|
*
|
|
* Ported from https://github.com/tjwebb/fnv-plus/blob/master/index.js
|
|
* License https://github.com/tjwebb/fnv-plus#license
|
|
*
|
|
* 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.
|
|
*/
|
|
export declare const fnv1a52: (str: string) => number;
|
|
export declare const etag: (payload: string, weak?: boolean) => string;
|