2026-07-29 08:29:29 +00:00
|
|
|
// Module ID: 516
|
|
|
|
|
// Function ID: 517
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: uint8Array
|
|
|
|
|
// Dependencies: []
|
|
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
// Module 516 (uint8Array)
|
2026-07-20 16:05:17 +00:00
|
|
|
const uint8Array = new Uint8Array(16);
|
|
|
|
|
arg5.default = function rng() {
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp = getRandomValues;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (!getRandomValues) {
|
|
|
|
|
const _crypto = crypto;
|
2026-08-04 21:03:28 +00:00
|
|
|
getRandomValues = typeof crypto !== "undefined";
|
|
|
|
|
if (typeof crypto !== "undefined") {
|
2026-07-29 08:29:29 +00:00
|
|
|
const _crypto4 = crypto;
|
2026-07-20 16:05:17 +00:00
|
|
|
getRandomValues = crypto.getRandomValues;
|
|
|
|
|
}
|
|
|
|
|
if (getRandomValues) {
|
2026-07-29 08:29:29 +00:00
|
|
|
const _crypto2 = crypto;
|
2026-07-20 16:05:17 +00:00
|
|
|
const _crypto3 = crypto;
|
|
|
|
|
getRandomValues = getRandomValues2.bind(crypto);
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp = getRandomValues;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (!getRandomValues) {
|
|
|
|
|
const _Error = Error;
|
2026-08-24 06:08:38 +00:00
|
|
|
error = new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
2026-07-20 16:05:17 +00:00
|
|
|
throw error;
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
return tmp(uint8Array);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|