mirror of
https://github.com/tendermint/tendermint.git
synced 2026-04-11 03:07:01 +00:00
gosec warning
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user