2
0
mirror of synced 2025-02-25 20:45:17 +00:00
ethers.js/utils/random-bytes.js

9 lines
152 B
JavaScript
Raw Normal View History

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