import { assert } from "../../assert.js";
import { computeIntegerArrayHash } from "./computeIntegerArrayHash.js";

/**
 * Computes hash on integer values, useful for building composite hashes
 * @param {...number} value
 * @returns {number}
 */
export function combine_hash(...value) {
    assert.isArray(value, 'value');

    return computeIntegerArrayHash(value, 0, value.length);
}