-
Notifications
You must be signed in to change notification settings - Fork 18k
x/crypto/openpgp/clearsign: TestMultiSign fails with "random source is broken" at Go tip #70682
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
Comments
Related Issues Related Code Changes (Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.) |
The test is indeed broken, and needs fixing. |
It's unclear if that test actually needs to generate deterministic keys? rand.Reader should just be fast enough for this use case, surely? |
Change https://go.dev/cl/633655 mentions this issue: |
Thanks for the quick fix! The monthly golang.org/x tagging workflow ran into this, and the fix enabled it to keep going (https://go.googlesource.com/crypto/+/refs/tags/v0.30.0). |
openpgp/clearsign: just use rand.Reader in tests See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1098562 golang/go#70682 golang/crypto@7042ebc
At Go tip, TestMultiSign fails when run without -short flag, including on first class ports like linux/amd64:
(E.g., build 8729461560583552209.)
Though it started failing earlier, as of go.dev/cl/632477, with a different error ("clearsign_test.go:155: cannot create key: crypto/rsa: decryption error").
CC @FiloSottile, @rolandshoemaker.
The text was updated successfully, but these errors were encountered: