@parcel/utils 2.0.0-nightly.1360 → 2.0.0-nightly.1362

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -12160,6 +12160,8 @@ if ($iGlOy.util.isNodejs && !$iGlOy.options.usePureJavaScript && !process.versio
12160
12160
  return _crypto.getRandomValues(arr);
12161
12161
  };
12162
12162
  if ($iGlOy.options.usePureJavaScript || !$iGlOy.util.isNodejs && !getRandomValues) {
12163
+ // if this is a web worker, do not use weak entropy, instead register to
12164
+ // receive strong entropy asynchronously from the main thread
12163
12165
  typeof window === "undefined" || window.document;
12164
12166
  // get load time entropy
12165
12167
  _ctx.collectInt(+new Date(), 32);