7 lines
234 B
JavaScript
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
|