@interopio/browser-worker 3.3.1 → 3.3.3

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.
@@ -874,14 +874,13 @@
874
874
  }))
875
875
  });
876
876
 
877
- const urlAlphabet =
877
+ let urlAlphabet =
878
878
  'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
879
-
880
879
  let nanoid = (size = 21) => {
881
880
  let id = '';
882
- let bytes = crypto.getRandomValues(new Uint8Array(size));
883
- while (size--) {
884
- id += urlAlphabet[bytes[size] & 63];
881
+ let i = size;
882
+ while (i--) {
883
+ id += urlAlphabet[(Math.random() * 64) | 0];
885
884
  }
886
885
  return id
887
886
  };