@instantdb/core
Version:
Instant's core local abstraction
14 lines • 509 B
TypeScript
/**
*
* Unique Hashing implementation inspired by djb2/fnv1a algorithms,
* where we are not concerned with the hash being decoded.
* Focuses on speed while maintaining good hash distribution
*
* Note: We could also use something like Murmurhash instead
* https://github.com/jensyt/imurmurhash-js/blob/master/imurmurhash.js
*
* @param {any} input - Value to hash
* @returns {string} - Hash in hex format
*/
export default function weakHash(input: any): string;
//# sourceMappingURL=weakHash.d.ts.map