@bcts/components 1.0.0-alpha.18 → 1.0.0-alpha.20
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/dist/index.cjs +1 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -8
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +8 -8
- package/dist/index.d.mts.map +1 -1
- package/dist/index.iife.js +1 -3
- package/dist/index.iife.js.map +1 -1
- package/dist/index.mjs +1 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -2175,9 +2175,7 @@ var UUID = class UUID {
|
|
|
2175
2175
|
*/
|
|
2176
2176
|
static random() {
|
|
2177
2177
|
const data = new Uint8Array(UUID_SIZE);
|
|
2178
|
-
|
|
2179
|
-
if (crypto !== void 0 && typeof crypto.getRandomValues === "function") crypto.getRandomValues(data);
|
|
2180
|
-
else for (let i = 0; i < UUID_SIZE; i++) data[i] = Math.floor(Math.random() * 256);
|
|
2178
|
+
globalThis.crypto.getRandomValues(data);
|
|
2181
2179
|
data[6] = data[6] & 15 | 64;
|
|
2182
2180
|
data[8] = data[8] & 63 | 128;
|
|
2183
2181
|
return new UUID(data);
|