Skip to main content
pseudoRandomBytes - node__crypto.d.ts - Node documentation
function pseudoRandomBytes

Usage in Deno

```typescript import { pseudoRandomBytes } from "node:node__crypto.d.ts"; ```
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