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

Usage in Deno

```typescript import { getRandomValues } from "node:node__crypto.d.ts"; ```
getRandomValues<T extends webcrypto.BufferSource>(typedArray: T): T
A convenient alias for webcrypto.getRandomValues. This implementation is not compliant with the Web Crypto spec, to write web-compatible code use webcrypto.getRandomValues instead.

Type Parameters

Parameters

typedArray: T

Return Type

T
Returns `typedArray`.