Generate a blob of random bits (psuedo random using Crypto.getRandomValues
) given a number of bytes.
import { genRandomBlob } from "https://deno.land/x/gen_random_blob@0.0.3/genRandomBlob.ts";
const blob = genRandomBlob(1024);
console.log(blob.size); // 1024
console.log(blob.type); // "application/octet-stream"
deno task test