Skip to content

Commit

Permalink
address requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pantrif committed Nov 15, 2024
1 parent d67f0ab commit 073f14f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/common/shuffling.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"github.com/eigerco/strawberry/internal/crypto"
"github.com/eigerco/strawberry/pkg/serialization"
"github.com/eigerco/strawberry/pkg/serialization/codec"
"golang.org/x/crypto/blake2b"
)

var serializer = serialization.NewSerializer(codec.NewJamCodec())
Expand Down Expand Up @@ -53,7 +52,7 @@ func generateRandomNumbers(h crypto.Hash, l uint32) ([]uint32, error) {
}

input := append(h[:], kBytes...)
hash := blake2b.Sum256(input)
hash := crypto.HashData(input)

p := (4 * i) % 32
var b [4]byte
Expand Down

0 comments on commit 073f14f

Please sign in to comment.