From 70ed3dafd650ce1ecc1528ec420f5328a7bb39ce Mon Sep 17 00:00:00 2001 From: Karissa McKelvey <633012+okdistribute@users.noreply.github.com> Date: Wed, 12 May 2021 11:45:45 -0700 Subject: [PATCH] fix: Not sure why this is here, but it breaks my webpack build. --- randombytes.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/randombytes.js b/randombytes.js index f0060c0..a06e4c8 100644 --- a/randombytes.js +++ b/randombytes.js @@ -20,12 +20,6 @@ var randombytes = (function () { if (crypto && crypto.getRandomValues) return browserBytes - if (require != null) { - // Node.js. Bust Browserify - crypto = require('cry' + 'pto') - if (crypto && crypto.randomBytes) return nodeBytes - } - return noImpl })()