diff --git a/src/abigen/wasm/wasm_exec_node.js b/src/abigen/wasm/wasm_exec_node.js index 7ec61e0..4baf9a7 100644 --- a/src/abigen/wasm/wasm_exec_node.js +++ b/src/abigen/wasm/wasm_exec_node.js @@ -14,10 +14,12 @@ globalThis.performance = { }, }; -globalThis.crypto = { - getRandomValues(b) { - crypto.randomFillSync(b); +Object.defineProperty(globalThis, "crypto", { + value: { + getRandomValues(b) { + crypto.randomFillSync(b); + }, }, -}; +}); require("./wasm_exec");