ethers.js/packages/random/lib/random.js

10 lines
349 B
JavaScript
Raw Permalink Normal View History

2020-11-16 23:07:24 -05:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
2021-03-07 18:24:04 -05:00
exports.randomBytes = void 0;
2020-11-16 23:07:24 -05:00
var crypto_1 = require("crypto");
var bytes_1 = require("@ethersproject/bytes");
function randomBytes(length) {
return bytes_1.arrayify(crypto_1.randomBytes(length));
}
exports.randomBytes = randomBytes;
//# sourceMappingURL=random.js.map