Skip to content

Generates a blob of random bits given a number of bytes

Notifications You must be signed in to change notification settings

JakeAve/genRandomBlob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GenRandomBlob

Generate a blob of random bits (psuedo random using Crypto.getRandomValues) given a number of bytes.

Usage

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"

Test

deno task test

About

Generates a blob of random bits given a number of bytes

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published