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.153.0/node/internal/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