katoikia-app/web-ui/web-react/node_modules/randomfill/index.js

8 lines
266 B
JavaScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
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')
}