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

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

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

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

    initialized = true;
}
function initialize ( ) { if ( initialized ) { return ; } unitTest ( ) ; keyUtils . addEntropy ( ... keyUtils . cpuEntropy ( ) ) ; assert ( keyUtils . entropyCount ( ) >= 128 , "insufficient entropy" ) ; initialized = true ; }
Run self-checking code and gather CPU entropy.

Initialization happens once even if called multiple times.

@return {Promise}
Run self - checking code and gather CPU entropy .