ethers.js/utils/random-bytes.js

9 lines
152 B
JavaScript

'use strict';
var randomBytes = require('crypto').randomBytes;
module.exports = function(length) {
return new Uint8Array(randomBytes(length));
}