Skip to content

Commit 8044533

Browse files
tniessenrichardlau
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 f03a4d7 commit 8044533

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/api/crypto.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -2806,7 +2806,7 @@ Return a random integer `n` such that `min <= n < max`. This
28062806
implementation avoids [modulo bias][].
28072807

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

28112811
If the `callback` function is not provided, the random integer is
28122812
generated synchronously.
@@ -3614,7 +3614,8 @@ See the [list of SSL OP Flags][] for details.
36143614
[RFC 5208]: https://www.rfc-editor.org/rfc/rfc5208.txt
36153615
[encoding]: buffer.html#buffer_buffers_and_character_encodings
36163616
[initialization vector]: https://en.wikipedia.org/wiki/Initialization_vector
3617+
[list of SSL OP Flags]: wiki.openssl.org/index.php/List_of_SSL_OP_Flags#Table_of_Options
3618+
[safe integers]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger
36173619
[scrypt]: https://en.wikipedia.org/wiki/Scrypt
3618-
[stream-writable-write]: stream.html#stream_writable_write_chunk_encoding_callback
36193620
[stream]: stream.html
3620-
[list of SSL OP Flags]: wiki.openssl.org/index.php/List_of_SSL_OP_Flags#Table_of_Options
3621+
[stream-writable-write]: stream.html#stream_writable_write_chunk_encoding_callback

0 commit comments

Comments
 (0)