Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function default
import { default } from "https://deno.land/std@0.100.0/node/_crypto/randomBytes.ts";

Parameters

size: number

Buffer length, must be equal or greater than zero

Parameters

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

Parameters

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