mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
doc: add link to safe integer definition
Refs: https://github.com/nodejs/node/pull/34600 Co-authored-by: Rich Trott <rtrott@gmail.com> PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
f03a4d78a2
commit
8044533e87
1 file changed
+5
-4
+5
-4
@@ -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.
|
||||
@@ -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
|
||||
[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
|
||||
[safe integers]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger
|
||||
[scrypt]: https://en.wikipedia.org/wiki/Scrypt
|
||||
[stream]: stream.html
|
||||
[stream-writable-write]: stream.html#stream_writable_write_chunk_encoding_callback
|
||||
Reference in new issue
Block a user