bench: Set ticket and seed to a non-all zero value

Set ticket and seed to a non-all zero value
This commit is contained in:
Phi 2023-11-17 15:20:07 +01:00
parent 369a4c4bfa
commit 4645f25d8b

View File

@ -266,7 +266,10 @@ var simplePreCommit1 = &cli.Command{
ProofType: spt(sectorSize, cctx.Bool("synthetic")), ProofType: spt(sectorSize, cctx.Bool("synthetic")),
} }
var ticket [32]byte // all zero ticket := [32]byte{}
for i := range ticket {
ticket[i] = 1
}
pieces, err := ParsePieceInfos(cctx, 3) pieces, err := ParsePieceInfos(cctx, 3)
if err != nil { if err != nil {
@ -420,7 +423,12 @@ var simpleCommit1 = &cli.Command{
start := time.Now() start := time.Now()
var ticket, seed [32]byte // all zero ticket := [32]byte{}
seed := [32]byte{}
for i := range ticket {
ticket[i] = 1
seed[i] = 1
}
commd, err := cid.Parse(cctx.Args().Get(2)) commd, err := cid.Parse(cctx.Args().Get(2))
if err != nil { if err != nil {