rng.js 360 B

12345678910111213141516
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = rng;
  6. var _crypto = _interopRequireDefault(require("crypto"));
  7. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  8. const rnds8 = new Uint8Array(16);
  9. function rng() {
  10. return _crypto.default.randomFillSync(rnds8);
  11. }