UNPKG

@sentry/core

Version:
15 lines (14 loc) • 370 B
// src/utils/hash.ts /** * 32-bit FNV-1a. Keep this algorithm stable: tunnel paths must match across SDK versions. */ function fnv1a32(input) { let hash = 2166136261; for (let i = 0; i < input.length; i++) { hash ^= input.charCodeAt(i); hash = Math.imul(hash, 16777619); } return (hash >>> 0).toString(36); } export { fnv1a32 }; //# sourceMappingURL=hash.js.map