"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.normalizedStrategyValue = normalizedStrategyValue;
exports.normalizedVariantValue = normalizedVariantValue;
const murmurHash3 = require("murmurhash3js");
function normalizedValue(id, groupId, normalizer, seed = 0) {
    const hash = murmurHash3.x86.hash32(`${groupId}:${id}`, seed);
    return (hash % normalizer) + 1;
}
const STRATEGY_SEED = 0;
function normalizedStrategyValue(id, groupId) {
    return normalizedValue(id, groupId, 100, STRATEGY_SEED);
}
const VARIANT_SEED = 86028157;
function normalizedVariantValue(id, groupId, normalizer) {
    return normalizedValue(id, groupId, normalizer, VARIANT_SEED);
}//# sourceMappingURL=https://main.vscode-cdn.net/sourcemaps/a21cda2c21704d89e6cf5b2804b460783ce44fad/node_modules/unleash-client/lib/strategy/util.js.map