ethers.js/utils/random-bytes.js

9 lines
152 B
JavaScript
Raw Normal View History

2016-07-27 09:53:40 +03:00
'use strict';
var randomBytes = require('crypto').randomBytes;
module.exports = function(length) {
return new Uint8Array(randomBytes(length));
}
2016-07-27 09:53:40 +03:00