Skip to main content
pseudoRandomBytes - crypto - Node documentation
function pseudoRandomBytes

Usage in Deno

import { pseudoRandomBytes } from "node:crypto";
pseudoRandomBytes(size: number): Buffer

Parameters

size: number

Return Type

Buffer
pseudoRandomBytes(
size: number,
callback: (
err: Error | null,
buf: Buffer,
) => void
,
): void

Parameters

size: number
callback: (
err: Error | null,
buf: Buffer,
) => void

Return Type

void
Back to top