-
Notifications
You must be signed in to change notification settings - Fork 3.8k
unix,win: add uv_random() #2347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
saghul
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments and a question, thanks for picking this up Ben!
|
@bnoordhuis the CI link is expired. Just double checking - from reading the comments, it looks like this isn't ready. Is that correct? If it's not, do you want to try to get this in the next release? I'm mainly asking for selfish personal reasons. |
|
Hah, I figured you'd be interested in that. :-) I'm afraid it still needs more work. It's on my todo list but it's a pretty busy time for me right now. |
|
Ping, I grew some interest too :-) Any way I can help? |
|
@saghul If you want to pick this up that'd be great. You should be able to push to my branch, and if not, let me know and I'll give you commit rights to my fork. |
2fd425c to
3879f12
Compare
|
Pushed a fixup. CI: https://ci.nodejs.org/view/libuv/job/libuv-test-commit/1575/ Still TODO: handle the AIX / IBMi comment. |
|
Updated with the suggested IBMi and AIX fixes: https://ci.nodejs.org/view/libuv/job/libuv-test-commit/1576/ PTAL @bnoordhuis |
|
There seem to be legit failures on windows. Will dig. |
|
The CI is having all sorts of issues right now, but none of the failures look related 👍 |
bnoordhuis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't LGTM my own PR but... LGTM ^^
Nice to see this come to completion. Great job, Saúl.
saghul
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😎
|
@bnoordhuis I fixed the couple of nits, squashed, rebased and approved ;-) Please take one last look. |
bnoordhuis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :-)
docs/src/misc.rst
Outdated
| - macOS, OpenBSD: `getentropy(2) <https://man.openbsd.org/getentropy.2>_` | ||
| if available, or `/dev/urandom` after reading from `/dev/random` once. | ||
| - AIX: `/dev/random`. | ||
| - IBMi: `/dev/urandom`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - IBMi: `/dev/urandom`. | |
| - IBM i: `/dev/urandom`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed this critical issue :-P
Add an API for obtaining cryptographically strong random data from the system PRNG. Co-authored-by: Saúl Ibarra Corretgé <[email protected]> Refs: libuv#1055 PR-URL: libuv#2347 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]>
|
Landed in ✨ 4ed2a78 ✨ |
Introduced in libuv#2404 and libuv#2347.
Introduced in #2404 and #2347. PR-URL: #2609 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]>
* chore: bump node in DEPS to v12.16.0 * Fixup asar support setup patch nodejs/node#30862 * Fixup InternalCallbackScope patch nodejs/node#30236 * Fixup GN buildfiles patch nodejs/node#30755 * Fixup low-level hooks patch nodejs/node#30466 * Fixup globals require patch nodejs/node#31643 * Fixup process stream patch nodejs/node#30862 * Fixup js2c modification patch nodejs/node#30755 * Fixup internal fs override patch nodejs/node#30610 * Fixup context-aware warn patch nodejs/node#30336 * Fixup Node.js with ltcg config nodejs/node#29388 * Fixup oaepLabel patch nodejs/node#30917 * Remove redundant ESM test patch nodejs/node#30997 * Remove redundant cli flag patch nodejs/node#30466 * Update filenames.json * Remove macro generation in GN build files nodejs/node#30755 * Fix some compilation errors upstream * Add uvwasi to deps nodejs/node#30258 * Fix BoringSSL incompatibilities * Fixup linked module patch nodejs/node#30274 * Add missing sources to GN uv build libuv/libuv#2347 * Patch some uvwasi incompatibilities * chore: bump Node.js to v12.6.1 * Remove mark_arraybuffer_as_untransferable.patch nodejs/node#30549 * Fix uvwasi build failure on win * Fixup --perf-prof cli option error * Fixup early cjs module loading * fix: initialize diagnostics properly nodejs/node#30025 * Disable new esm syntax specs nodejs/node#30219 * Fixup v8 weakref hook spec nodejs/node#29874 * Fix async context timer issue * Disable monkey-patch-main spec It relies on nodejs/node#29777, and we don't override prepareStackTrace. * Disable new tls specs nodejs/node#23188 We don't support much of TLS owing to schisms between BoringSSL and OpenSSL. Co-authored-by: Shelley Vohr <[email protected]>
Add an API for obtaining cryptographically strong random data from the system PRNG. Co-authored-by: Saúl Ibarra Corretgé <[email protected]> Refs: libuv/libuv#1055 PR-URL: libuv/libuv#2347 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]>
Introduced in libuv/libuv#2404 and libuv/libuv#2347. PR-URL: libuv/libuv#2609 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]>
Add an API for obtaining cryptographically strong random data from the system PRNG. Co-authored-by: Saúl Ibarra Corretgé <[email protected]> Refs: libuv/libuv#1055 PR-URL: libuv/libuv#2347 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]>
Introduced in libuv/libuv#2404 and libuv/libuv#2347. PR-URL: libuv/libuv#2609 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]>
Add an API for obtaining cryptographically strong random data from the
system PRNG.
Refs: #1055
CI: https://ci.nodejs.org/job/libuv-test-commit/1437/ (still need to figure out why random_sync fails on Windows)