summaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2023-03-28 16:26:38 +0530
committerGitHub <noreply@github.com>2023-03-28 10:56:38 +0000
commit10012c2fe312a4f7ddc5217adaa6718c91bfb819 (patch)
treea5e5124a43465e5a5fed4e32771e92356b37aa5f /Cargo.toml
parent67e21e71ce6a9c7d0f261219609de61f6dd0c7a3 (diff)
feat(ext/node): add `crypto.checkPrime` API (#18465)
Towards #18455 This commit implements `checkPrimeSync` and `checkPrime` in node:crypto using the Miller-Rabin primality test (fun fact: it actually is a test for composite numbers) It first compares the candidate against many known small primes and if not, proceeds to run the Miller-Rabin primality test. http://nickle.org/examples/miller-rabin.5c used as reference implementation.
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index b364a9cf4..1af05645c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -102,7 +102,7 @@ libc = "0.2.126"
log = "=0.4.17"
lsp-types = "=0.93.2" # used by tower-lsp and "proposed" feature is unstable in patch releases
notify = "=5.0.0"
-num-bigint = "0.4"
+num-bigint = { version = "0.4", features = ["rand"] }
once_cell = "1.17.1"
os_pipe = "=1.0.1"
parking_lot = "0.12.0"