File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -856,15 +856,29 @@ <h4>The getRandomValues method</h4>
856856 </li>
857857 <li>
858858 <p>
859- If the `byteLength` of |array| is greater than 65536, [= exception/throw =] a
859+ Let |byteLength| be the [= BufferSource/byte length =] of |array|.
860+ </p>
861+ </li>
862+ <li>
863+ <p>
864+ If |byteLength| is greater than 65536, [= exception/throw =] a
860865 {{QuotaExceededError}} and
861866 [= terminate the algorithm =].
862867 </p>
863868 </li>
864869 <li>
865870 <p>
866- Overwrite all elements of |array| with cryptographically strong random values of
867- the appropriate type.
871+ Let |bytes| be a [= byte sequence =] of length |byteLength|.
872+ </p>
873+ </li>
874+ <li>
875+ <p>
876+ Fill |bytes| with cryptographically secure random bytes.
877+ </p>
878+ </li>
879+ <li>
880+ <p>
881+ [= ArrayBufferView/Write =] |bytes| into |array|.
868882 </p>
869883 </li>
870884 <li>
You can’t perform that action at this time.
0 commit comments