/**
 * Hash function using prime shift
 * @param {number[]} nodes
 * @param {number} count
 */
export function compute_light_data_hash_0(nodes, count) {

    let hash = count;

    for (let i = 0; i < count; i++) {
        const datum = nodes[i];

        hash = hash * 31 + datum;
    }

    return hash >>> 0;
}
