diff --git a/openpgp/clearsign/clearsign_test.go b/openpgp/clearsign/clearsign_test.go index 051b8f16ff..821c35ff47 100644 --- a/openpgp/clearsign/clearsign_test.go +++ b/openpgp/clearsign/clearsign_test.go @@ -123,24 +123,12 @@ func TestSigning(t *testing.T) { } } -// We use this to make test keys, so that they aren't all the same. -type quickRand byte - -func (qr *quickRand) Read(p []byte) (int, error) { - for i := range p { - p[i] = byte(*qr) - } - *qr++ - return len(p), nil -} - func TestMultiSign(t *testing.T) { if testing.Short() { t.Skip("skipping long test in -short mode") } - zero := quickRand(0) - config := packet.Config{Rand: &zero} + var config packet.Config for nKeys := 0; nKeys < 4; nKeys++ { nextTest: