source: imaps-frontend/node_modules/uuid/dist/cjs/rng.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 399 bytes
RevLine 
[79a0317]1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.default = rng;
4const crypto_1 = require("crypto");
5const rnds8Pool = new Uint8Array(256);
6let poolPtr = rnds8Pool.length;
7function rng() {
8 if (poolPtr > rnds8Pool.length - 16) {
9 (0, crypto_1.randomFillSync)(rnds8Pool);
10 poolPtr = 0;
11 }
12 return rnds8Pool.slice(poolPtr, (poolPtr += 16));
13}
Note: See TracBrowser for help on using the repository browser.