PHP 8.2.30
Preview: rng.js Size: 927 B
/home/byroehnu/.trash/node_modules11/uuid/dist/commonjs-browser/rng.js

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = rng;
// Unique ID creation requires a high quality random # generator. In the browser we therefore
// require the crypto API and do not support built-in fallback to lower quality random number
// generators (like Math.random()).
let getRandomValues;
const rnds8 = new Uint8Array(16);

function rng() {
  // lazy load so that environments that need to polyfill have a chance to do so
  if (!getRandomValues) {
    // getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
    getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);

    if (!getRandomValues) {
      throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
    }
  }

  return getRandomValues(rnds8);
}

Directory Contents

Dirs: 0 × Files: 16

Name Size Perms Modified Actions
1.75 KB lrw-r--r-- 2026-02-28 00:26:54
Edit Download
6.85 KB lrw-r--r-- 2026-02-28 00:27:52
Edit Download
271 B lrw-r--r-- 2026-02-28 00:28:16
Edit Download
188 B lrw-r--r-- 2026-02-28 00:28:28
Edit Download
1.35 KB lrw-r--r-- 2026-02-28 00:28:32
Edit Download
267 B lrw-r--r-- 2026-02-28 00:28:38
Edit Download
927 B lrw-r--r-- 2026-02-28 00:28:44
Edit Download
2.55 KB lrw-r--r-- 2026-02-28 00:28:54
Edit Download
1.74 KB lrw-r--r-- 2026-02-28 00:28:58
Edit Download
3.52 KB lrw-r--r-- 2026-02-28 00:29:04
Edit Download
414 B lrw-r--r-- 2026-02-28 00:29:08
Edit Download
1009 B lrw-r--r-- 2026-02-28 00:29:14
Edit Download
417 B lrw-r--r-- 2026-02-28 00:29:18
Edit Download
2.03 KB lrw-r--r-- 2026-02-28 00:29:10
Edit Download
410 B lrw-r--r-- 2026-02-28 00:29:22
Edit Download
474 B lrw-r--r-- 2026-02-28 00:29:32
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).