src/ecc/key_utils.js
function addEntropy(...ints) {
    assert.equal(externalEntropyArray.length, 101, "externalEntropyArray");

    entropyCount += ints.length;
    for(const i of ints) {
        const pos = entropyPos++ % 101;
        const i2 = externalEntropyArray[pos] += i;
        if(i2 > 9007199254740991)
            externalEntropyArray[pos] = 0;
    }
}
function addEntropy(...ints) {
    assert.equal(externalEntropyArray.length, 101, "externalEntropyArray");

    entropyCount += ints.length;
    for(const i of ints) {
        const pos = entropyPos++ % 101;
        const i2 = externalEntropyArray[pos] += i;
        if(i2 > 9007199254740991)
            externalEntropyArray[pos] = 0;
    }
}
Adds entropy.  This may be called many times while the amount of data saved
is accumulatively reduced to 101 integers.  Data is retained in RAM for the
life of this module.

@example React <code>
componentDidMount() {
this.refs.MyComponent.addEventListener("mousemove", this.onEntropyEvent, {capture: false, passive: true})
}
componentWillUnmount() {
this.refs.MyComponent.removeEventListener("mousemove", this.onEntropyEvent);
}
onEntropyEvent = (e) => {
if(e.type === 'mousemove')
key_utils.addEntropy(e.pageX, e.pageY, e.screenX, e.screenY)
else
console.log('onEntropyEvent Unknown', e.type, e)
}
</code>