diff --git a/scripts/deploy.mjs b/scripts/deploy.mjs index 7e1048c..e54609f 100644 --- a/scripts/deploy.mjs +++ b/scripts/deploy.mjs @@ -1,5 +1,6 @@ import fs from "node:fs"; import path from "node:path"; +import crypto from "node:crypto"; import { fileURLToPath } from "node:url"; import { Keypair, @@ -73,9 +74,7 @@ async function main() { Operation.createCustomContract({ address: new Address(kp.publicKey()), wasmHash, - salt: Buffer.from( - Array.from({ length: 32 }, () => Math.floor(Math.random() * 256)), - ), + salt: crypto.randomBytes(32), }), ) .setTimeout(60)