function initialize() {
    if(initialized) {
        return;
    }

    unitTest();
    keyUtils.addEntropy(...keyUtils.cpuEntropy());
    assert(keyUtils.entropyCount() >= 128, "insufficient entropy");

    initialized = true;
}