import { getWebCrypto } from "./getWebCrypto.ts"; /** * 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: Uint8Array): Promise { const WebCrypto = await getWebCrypto(); WebCrypto.getRandomValues(array); return array; }