@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.
@@ -868,14 +868,13 @@ var webWorkerConfigDecoder = object({
868
868
  }))
869
869
  });
870
870
 
871
- const urlAlphabet =
871
+ let urlAlphabet =
872
872
  'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
873
-
874
873
  let nanoid = (size = 21) => {
875
874
  let id = '';
876
- let bytes = crypto.getRandomValues(new Uint8Array(size));
877
- while (size--) {
878
- id += urlAlphabet[bytes[size] & 63];
875
+ let i = size;
876
+ while (i--) {
877
+ id += urlAlphabet[(Math.random() * 64) | 0];
879
878
  }
880
879
  return id
881
880
  };