Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function generateRandom
import { generateRandom } from "https://deno.land/x/simple_utility@v1.4.4/src/crypto.ts";

Generate random binary with any number of bytes.

Examples

Example 1

const random = generateRandom(16);

Parameters

n: number

Returns

Uint8Array