Skip to content

Commit

Permalink
doc: adjust types for webcrypto getRandomValues
Browse files Browse the repository at this point in the history
  • Loading branch information
LiviaMedeiros committed Jan 17, 2022
1 parent 1b43562 commit 213ea91
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions doc/api/webcrypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,17 +354,14 @@ Provides access to the `SubtleCrypto` API.
added: v15.0.0
-->

<!--lint disable maximum-line-length remark-lint-->

* `typedArray` {Buffer|Int8Array|Uint8Array|Uint8ClampedArray|Int16Array|Uint16Array|Int32Array|Uint32Array|BigInt64Array|BigUint64Array}
* Returns: {Buffer|Int8Array|Uint8Array|Uint8ClampedArray|Int16Array|Uint16Array|Int32Array|Uint32Array|BigInt64Array|BigUint64Array}

<!--lint enable maximum-line-length remark-lint-->
* `typedArray` {Buffer|TypedArray}
* Returns: {Buffer|TypedArray}

Generates cryptographically strong random values. The given `typedArray` is
filled with random values, and a reference to `typedArray` is returned.

The given `typedArray` must be an integer-based instance of {TypedArray}.
The given `typedArray` must be an integer-based instance of {TypedArray},
i.e. `Float32Array` and `Float64Array` are not accepted.

An error will be thrown if the given `typedArray` is larger than 65,536 bytes.

Expand Down

0 comments on commit 213ea91

Please sign in to comment.