Skip to main content
Deno 2 is finally 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.128.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