aboutsummaryrefslogtreecommitdiff
path: root/node_modules/randomfill/index.js
blob: e2b5f7a703d7a41f2fc64306e41d93298e65fe4b (plain)
1
2
3
4
5
6
7
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')
}