window.crypto.getRandomValues

  • Revision slug: DOM/window.crypto.getRandomValues
  • Revision title: window.crypto.getRandomValues
  • Revision id: 54802
  • Created:
  • Creator: evilpie
  • Is current revision? No
  • Comment 40 words added

Revision Content

This methods allows you to get cryptographically random values.

Syntax

window.crypto.getRandomValues(typedArray);

Parameters

Parameter Description
typedArray Integer-based TypedArray (i.e. Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, or Uint32Array). All elements in the array are going to be overridden with random numbers.

Revision Source

<p>This methods allows you to get cryptographically random values.</p>
<h2>Syntax</h2>
<pre class="brush: js">window.crypto.getRandomValues(typedArray);
</pre>
<h2>Parameters</h2>
<table class="standard-table" style=""> <thead> <tr> <th scope="col">Parameter</th> <th scope="col">Description</th> </tr> </thead> <tbody> <tr> <td><code>typedArray</code></td> <td>Integer-based TypedArray (i.e. Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, or Uint32Array). All elements in the array are going to be overridden with random numbers.</td> </tr> </tbody>
</table>
Revert to this revision