Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bf39354

Browse filesBrowse files
tniessenaddaleax
authored andcommitted
doc: add link to safe integer definition
Refs: #34600 Co-authored-by: Rich Trott <rtrott@gmail.com> PR-URL: #35049 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 8ed4ab5 commit bf39354
Copy full SHA for bf39354

File tree

Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed
Open diff view settings
Collapse file

‎doc/api/crypto.md‎

Copy file name to clipboardExpand all lines: doc/api/crypto.md
+4-3Lines changed: 4 additions & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2784,7 +2784,7 @@ Return a random integer `n` such that `min <= n < max`. This
27842784
implementation avoids [modulo bias][].
27852785

27862786
The range (`max - min`) must be less than 2<sup>48</sup>. `min` and `max` must
2787-
be safe integers.
2787+
be [safe integers][].
27882788

27892789
If the `callback` function is not provided, the random integer is
27902790
generated synchronously.
@@ -3587,7 +3587,8 @@ See the [list of SSL OP Flags][] for details.
35873587
[RFC 5208]: https://www.rfc-editor.org/rfc/rfc5208.txt
35883588
[encoding]: buffer.html#buffer_buffers_and_character_encodings
35893589
[initialization vector]: https://en.wikipedia.org/wiki/Initialization_vector
3590+
[list of SSL OP Flags]: wiki.openssl.org/index.php/List_of_SSL_OP_Flags#Table_of_Options
3591+
[safe integers]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger
35903592
[scrypt]: https://en.wikipedia.org/wiki/Scrypt
3591-
[stream-writable-write]: stream.html#stream_writable_write_chunk_encoding_callback
35923593
[stream]: stream.html
3593-
[list of SSL OP Flags]: wiki.openssl.org/index.php/List_of_SSL_OP_Flags#Table_of_Options
3594+
[stream-writable-write]: stream.html#stream_writable_write_chunk_encoding_callback

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.