crypto: avoid infinite loops in prime generation · nodejs/node@55fd6b6 · GitHub
Skip to content

Commit 55fd6b6

Browse files
tniessendanielleadams
authored andcommitted
crypto: avoid infinite loops in prime generation
PR-URL: #37212 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent a693baa commit 55fd6b6

2 files changed

Lines changed: 58 additions & 0 deletions

File tree

src/crypto/crypto_random.cc

Lines changed: 20 additions & 0 deletions

test/parallel/test-crypto-prime.js

Lines changed: 38 additions & 0 deletions

0 commit comments

Comments
 (0)