Skip to main content
Module

x/simple_utility/mod.ts>cryptoRandom

Simplify processing for Deno.
Latest
function cryptoRandom
import { cryptoRandom } from "https://deno.land/x/simple_utility@v2.1.0/mod.ts";

Generate random binary with any number of bytes.

Examples

Example 1

const random = cryptoRandom(16);

Parameters

n: number

Returns

Uint8Array