const threshold = (typeof options?.threshold !== 'number' || options.threshold < 0x0 || options.threshold > 0xffffffff)
? 0xfffffff8
: options.threshold
- const effort = (typeof options?.effort !== 'number' || options.effort < 0x1 || options.effort > 0x10)
+ const effort = (typeof options?.effort !== 'number' || options.effort < 0x1 || options.effort > 0x20)
? 0x800
: options.effort * 0x100
const debug = !!(options?.debug)
this.#busy = !data.getUint32(8)
times.push(performance.now() - start)
} while (this.#busy)
- if (debug) {
- this.#logAverages(times)
- }
+ if (debug) this.#logAverages(times)
return nonce.toString(16).padStart(16, '0')
}