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

10 lines
359 B
JavaScript
Raw Normal View History

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