import { xxHash32 } from "js-xxhash";
const h32 = (s) => xxHash32(s, 0);
const h64 = (s) => hash(s, 2);
const h128 = (s) => hash(s, 4);
function hash(str, words) {
  let hash2 = 0n;
  for (let i = 0; i < words; i++) {
    hash2 = (hash2 << 32n) + BigInt(xxHash32(str, i));
  }
  return hash2;
}
export {
  h128,
  h32,
  h64
};
//# sourceMappingURL=hash.js.map
