2025-04-19 15:38:48 +08:00

7 lines
234 B
JavaScript

import crypto from "crypto";
import { bufferToArray } from "@walletconnect/encoding";
export function randomBytes(length) {
const buf = crypto.randomBytes(length);
return bufferToArray(buf);
}
//# sourceMappingURL=index.js.map