function random32ByteBuffer({cpuEntropyBits = 0, safe = true} = {}) {
    assert.equal(typeof cpuEntropyBits, "number", "cpuEntropyBits");
    assert.equal(typeof safe, "boolean", "boolean");

    if(safe) {
        assert(entropyCount >= 128, "Call initialize() to add entropy (current: " + entropyCount + ")");
    }

    // if(entropyCount > 0) {
    //     console.log(`Additional private key entropy: ${entropyCount} events`)
    // }

    const hash_array = [];
    hash_array.push(randomBytes(32));
    hash_array.push(Buffer.from(cpuEntropy(cpuEntropyBits)));
    hash_array.push(externalEntropyArray);
    hash_array.push(browserEntropy());
    return hash.sha256(Buffer.concat(hash_array));
}