wallet-core/node_modules/randomfill/index.js
2017-12-10 21:51:33 +01:00

8 lines
266 B
JavaScript

var crypto = require('crypto')
if (typeof crypto.randomFill === 'function' && typeof crypto.randomFillSync === 'function') {
exports.randomFill = crypto.randomFill
exports.randomFillSync = crypto.randomFillSync
} else {
module.exports = require('./browser')
}