From 8044533e87696f37c46ce8730e549fabefe7c43c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Fri, 4 Sep 2020 11:19:06 +0200 Subject: [PATCH] doc: add link to safe integer definition Refs: https://github.com/nodejs/node/pull/34600 Co-authored-by: Rich Trott PR-URL: https://github.com/nodejs/node/pull/35049 Reviewed-By: Richard Lau Reviewed-By: Colin Ihrig Reviewed-By: Rich Trott Reviewed-By: Anna Henningsen --- doc/api/crypto.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index a6de237bcc1979..00c0cbba5454f2 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -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 248. `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 +[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