We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e90321 commit 7042ebcCopy full SHA for 7042ebc
openpgp/clearsign/clearsign_test.go
@@ -123,24 +123,12 @@ func TestSigning(t *testing.T) {
123
}
124
125
126
-// We use this to make test keys, so that they aren't all the same.
127
-type quickRand byte
128
-
129
-func (qr *quickRand) Read(p []byte) (int, error) {
130
- for i := range p {
131
- p[i] = byte(*qr)
132
- }
133
- *qr++
134
- return len(p), nil
135
-}
136
137
func TestMultiSign(t *testing.T) {
138
if testing.Short() {
139
t.Skip("skipping long test in -short mode")
140
141
142
- zero := quickRand(0)
143
- config := packet.Config{Rand: &zero}
+ var config packet.Config
144
145
for nKeys := 0; nKeys < 4; nKeys++ {
146
nextTest:
0 commit comments