Module

std/node/crypto.ts>randomBytes

Deno standard library
Go to Latest
function randomBytes
import { randomBytes } from "https://dotland.deno.dev/std@0.145.0/node/crypto.ts";

Parameters

size: number

Buffer length, must be equal or greater than zero

Returns

Buffer

Parameters

size: number
optional
cb: (err: Error | null, buf?: Buffer) => void

Parameters

size: number
optional
cb: (err: Error | null, buf?: Buffer) => void

Returns

Buffer | void
import randomBytes
import { randomBytes } from "https://dotland.deno.dev/std@0.145.0/node/crypto.ts";