Skip to content

Commit e494f05

Browse files
committed
fixed import order, and removed unused crypto/rand imports
1 parent ff338aa commit e494f05

5 files changed

Lines changed: 2 additions & 6 deletions

File tree

cmd/ceremony/crl_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"crypto"
55
"crypto/ecdsa"
66
"crypto/elliptic"
7-
"crypto/rand"
87
"crypto/x509"
98
"crypto/x509/pkix"
109
"encoding/asn1"
@@ -48,7 +47,7 @@ func TestGenerateCRLTimeBounds(t *testing.T) {
4847
// we need to wrap it as we pass a purposefully broken io.Reader to Sign in order
4948
// to verify that go isn't using it as a source of randomness (we expect this
5049
// randomness to come from the HSM). If we directly call Sign on the crypto.Signer
51-
// it would fail, so we wrap it so that we can use a shim nil in the Sign
50+
// it would fail, so we wrap it so that we can use a shim rand.Reader in the Sign
5251
// call.
5352
type wrappedSigner struct{ k crypto.Signer }
5453

core/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package core
22

33
import (
4-
"crypto/rand"
54
"context"
65
"crypto"
76
"crypto/ecdsa"
7+
"crypto/rand"
88
"crypto/rsa"
99
"crypto/sha256"
1010
"crypto/x509"

csr/csr_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package csr
22

33
import (
44
"context"
5-
"crypto/rand"
65
"crypto/rsa"
76
"crypto/x509"
87
"crypto/x509/pkix"

goodkey/good_key_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"crypto/ecdsa"
66
"crypto/elliptic"
7-
"crypto/rand"
87
"crypto/rsa"
98
"fmt"
109
"math/big"

goodkey/sagoodkey/good_key_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"crypto/ecdsa"
66
"crypto/elliptic"
7-
"crypto/rand"
87
"testing"
98

109
"google.golang.org/grpc"

0 commit comments

Comments
 (0)