From 94782b6e94630c58baf908479fd659aa88e05df1 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Tue, 16 Mar 2021 16:30:00 +0100 Subject: removed unused io.Reader --- log_parameters.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/log_parameters.go b/log_parameters.go index 9c23fa6..a2a2d7a 100644 --- a/log_parameters.go +++ b/log_parameters.go @@ -5,8 +5,6 @@ import ( "fmt" "time" - "crypto/rand" - "github.com/system-transparency/stfe/types" ) @@ -58,7 +56,7 @@ func (lp *LogParameters) SignTreeHeadV1(th *types.TreeHeadV1) (*types.StItem, er if err != nil { return nil, fmt.Errorf("Marshal failed for TreeHeadV1: %v", err) } - sig, err := lp.Signer.Sign(rand.Reader, serialized, crypto.Hash(0)) + sig, err := lp.Signer.Sign(nil, serialized, crypto.Hash(0)) if err != nil { return nil, fmt.Errorf("Sign failed: %v", err) } -- cgit v1.2.3