Skip to content

Commit

Permalink
doc: add link to safe integer definition
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
tniessen authored and richardlau committed Sep 7, 2020
1 parent f03a4d7 commit 8044533
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -2806,7 +2806,7 @@ Return a random integer `n` such that `min <= n < max`. This
implementation avoids [modulo bias][].

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

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

0 comments on commit 8044533

Please sign in to comment.