Skip to main content
Go to Latest
function cryptoRandom
import { cryptoRandom } from "https://deno.land/x/simple_utility@v2.2.1/mod.pure.full.ts";

Generate random binary with any number of bytes.

Examples

Example 1

const random = cryptoRandom(16);

Parameters

n: number

Returns

Uint8Array