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

9 lines
319 B
JavaScript
Raw Normal View History

2020-11-17 07:07:24 +03:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
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