index.js 266 B

1234567
  1. var crypto = require('crypto')
  2. if (typeof crypto.randomFill === 'function' && typeof crypto.randomFillSync === 'function') {
  3. exports.randomFill = crypto.randomFill
  4. exports.randomFillSync = crypto.randomFillSync
  5. } else {
  6. module.exports = require('./browser')
  7. }