Skip to content

Commit bf39354

Browse files
tniessenaddaleax
authored andcommitted
doc: add link to safe integer definition
Refs: #34600 Co-authored-by: Rich Trott <[email protected]> PR-URL: #35049 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 8ed4ab5 commit bf39354

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/api/crypto.md

Lines changed: 4 additions & 3 deletions
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)