We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 11c27a7 + 9f73cd5 commit e3eb51bCopy full SHA for e3eb51b
errcheck/excludes.go
@@ -17,6 +17,9 @@ var DefaultExcludedSymbols = []string{
17
"(*bytes.Buffer).WriteRune",
18
"(*bytes.Buffer).WriteString",
19
20
+ // crypto
21
+ "crypto/rand.Read", // https://github.com/golang/go/issues/66821
22
+
23
// fmt
24
"fmt.Print",
25
"fmt.Printf",
testdata/crypto_rand.go
@@ -0,0 +1,10 @@
1
+package main
2
3
+import (
4
+ "crypto/rand"
5
+)
6
7
+func ignoreRandReaderReturns() {
8
+ buf := make([]byte, 128)
9
+ rand.Read(buf) // EXCLUDED
10
+}
0 commit comments