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

12 lines
341 B
Plaintext

import { getWebCrypto } from './getWebCrypto.js';
/**
* Fill up the provided bytes array with random bytes equal to its length.
*
* @returns the same bytes array passed into the method
*/
export async function getRandomValues(array) {
const WebCrypto = await getWebCrypto();
WebCrypto.getRandomValues(array);
return array;
}