import { getRandomValues } from "https://deno.land/x/deno@v0.30.0/cli/js/get_random_values.ts";
Synchronously collects cryptographically secure random values. The
underlying CSPRNG in use is Rust's rand::rngs::ThreadRng
.
const arr = new Uint8Array(32);
crypto.getRandomValues(arr);
Parameters
typedArray: T