fix some linter warnings

This commit is contained in:
Lucas Clemente
2016-08-23 12:24:33 +02:00
parent d1d53beaa8
commit 126db938d0
7 changed files with 10 additions and 11 deletions

View File

@@ -167,7 +167,7 @@ func WriteUint16(b *bytes.Buffer, i uint16) {
func RandomBit() (bool, error) {
b := make([]byte, 1)
_, err := rand.Read(b)
return uint8(b[0])%2 == 0, err
return b[0]%2 == 0, err
}
// Uint32Slice attaches the methods of sort.Interface to []uint32, sorting in increasing order.