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
all: decide on the hyphenation of pseudorandom vs pseudo-random? #25959
Comments
CC @robpike |
I see what you meant by your comment now :) Secure vs Strong: If we had to choose, I'd go with secure since even the man page for /dev/[u]random mentions the following under "Usage":
TLDR, we may want to mention that crypto/rand implements a CSPRNG (cryptographically secure pseudorandom number generator). |
I prefer pseudo-random and that's what math/rand uses, so that's my vote. Generally, in English phrases become adjectives by hyphenation, and then after a long period of consistent usage the hyphens drop, but I don't believe pseudo-random is ready to lose its hyphen yet. |
"cryptographically secure random number generator" Too many people go from that "pseudo" to "but I need real randomness!" and then you end up with |
Change https://golang.org/cl/119875 mentions this issue: |
…d Reader Updates #25959 Change-Id: I9ae64b216ab5807718db0db98b32de1dc5fa4bec Reviewed-on: https://go-review.googlesource.com/119875 Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Filippo Valsorda <filippo@golang.org>
The docs for crypto/rand contain both "pseudorandom" and "pseudo-random" for the same part of speech.
Decide which to use.
Also, the package doc says:
But the Reader says:
Is it cryptographically "strong" or is it "secure"? Can we pick a word there too?
Or can we just remove "pseudorandom" altogether? I feel like it makes it sound too much like math/rand.
Can we just say "cryptographically secure random number generator"?
/cc @FiloSottile @agl @ianlancetaylor
The text was updated successfully, but these errors were encountered: