FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add pseudo random number generator info to randomUUID by srknzl · Pull Request #38074 · nodejs/node · GitHub

/ node Public

Add pseudo random number generator info to randomUUID - #38074

Merged
Trott merged 1 commit into
nodejs:masterfrom
srknzl:docs-improve-randomUUID
Apr 11, 2021
Merged

Add pseudo random number generator info to randomUUID#38074
Trott merged 1 commit into
nodejs:masterfrom
srknzl:docs-improve-randomUUID

Conversation

srknzl commented Apr 4, 2021
edited
Loading

Copy link
Copy Markdown
Contributor

Hello, 😊 !

As far as I understand, recently added function crypto.randomUUID is cryptographically strong. I think it's better to mention it in the docs.

ref: #36729

nodejs-github-bot added crypto Issues and PRs related to the crypto subsystem. doc Issues and PRs related to the documentations. labels Apr 4, 2021

srknzl commented Apr 4, 2021
edited
Loading

Copy link
Copy Markdown
Contributor Author

alternatively we can say

"The UUID is generated using a cryptographically strong pseudo random number generator."

as in the case of javadoc of randomUUID java method

https://docs.oracle.com/javase/7/docs/api/java/util/UUID.html#randomUUID()

jasnell commented Apr 6, 2021

Copy link
Copy Markdown
Member

I'd remove the word "strong" to be honest. While it may be clear to those who are very familiar with pseudo-random number generators, I'd suspect that it's fairly meaningless to most developers. "The UUID is generated using a cryptographic pseudo-random number generator" would be just fine I think.

srknzl changed the title Add "cryptographically strong" to description of randomUUID Add pseudo random number generator info to randomUUID Apr 7, 2021
Comment thread doc/api/crypto.md Outdated
Trott force-pushed the docs-improve-randomUUID branch from 75650f2 to 051743c Compare April 11, 2021 17:47
Trott force-pushed the docs-improve-randomUUID branch from 051743c to 993a1da Compare April 11, 2021 20:40

Trott commented Apr 11, 2021

Copy link
Copy Markdown
Member

Landed in 993a1da

Trott merged commit 993a1da into nodejs:master Apr 11, 2021
targos pushed a commit that referenced this pull request May 1, 2021
PR-URL: #38074
Refs: #36729
Reviewed-By: Rich Trott <rtrott@gmail.com>
danielleadams mentioned this pull request May 3, 2021
danielleadams pushed a commit that referenced this pull request May 8, 2021
PR-URL: #38074
Refs: #36729
Reviewed-By: Rich Trott <rtrott@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

crypto Issues and PRs related to the crypto subsystem. doc Issues and PRs related to the documentations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL