gosec warning

This commit is contained in:
Sergio Mena
2022-10-12 15:20:35 +02:00
parent 86d72267f1
commit 86d7c5ee26

View File

@@ -30,7 +30,7 @@ func NewBytes(p *Payload) ([]byte, error) {
}
// We halve the padding size because we transform the TX to hex
p.Padding = make([]byte, (p.Size-uint64(us))/2)
p.Padding = make([]byte, (p.Size-uint64(us))/uint64(2))
_, err = rand.Read(p.Padding)
if err != nil {
return nil, err