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

11 lines
395 B
JavaScript
Raw Permalink Normal View History

2019-05-14 18:48:48 -04:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var crypto_1 = require("crypto");
var bytes_1 = require("@ethersproject/bytes");
var shuffle_1 = require("./shuffle");
exports.shuffled = shuffle_1.shuffled;
function randomBytes(length) {
return bytes_1.arrayify(crypto_1.randomBytes(length));
}
exports.randomBytes = randomBytes;
2020-07-13 08:03:56 -04:00
//# sourceMappingURL=index.js.map