aboutsummaryrefslogtreecommitdiff
path: root/log_parameters.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus.dahlberg@kau.se>2021-03-16 16:30:00 +0100
committerRasmus Dahlberg <rasmus.dahlberg@kau.se>2021-03-16 16:30:00 +0100
commit94782b6e94630c58baf908479fd659aa88e05df1 (patch)
treedbd106b45089a27f8a1044aa2e37a2f08edb86ec /log_parameters.go
parent453a0c38516496052c5f570691c74516c8675e2d (diff)
removed unused io.Reader
Diffstat (limited to 'log_parameters.go')
-rw-r--r--log_parameters.go4
1 files changed, 1 insertions, 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)
}