Files
NapCatQQ/.pnpm-store/v3/files/ef/5652a487c2534bb79b79e3c34e76d625817eecb6abf0bea4d1ad413b00ca05bca63f6a1e9fd434d4fb7e42b2d535b921ac3395f9508b4f0888482c8642dbdd
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

15 lines
483 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRandomValues = getRandomValues;
const getWebCrypto_js_1 = require("./getWebCrypto.js");
/**
* Fill up the provided bytes array with random bytes equal to its length.
*
* @returns the same bytes array passed into the method
*/
async function getRandomValues(array) {
const WebCrypto = await (0, getWebCrypto_js_1.getWebCrypto)();
WebCrypto.getRandomValues(array);
return array;
}