Skip to content

Commit

Permalink
remove warnings about hashing functions
Browse files Browse the repository at this point in the history
  • Loading branch information
dhontecillas committed Sep 18, 2024
1 parent 5060bae commit df26e2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hasher.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package bloomfilter

import (
"crypto/md5"
"crypto/sha1"
"crypto/md5" // skipcq: GSC-G501
"crypto/sha1" // skipcq: GSC-G505
"encoding/binary"
"fmt"
"hash"
Expand Down Expand Up @@ -34,8 +34,8 @@ var (

ErrImpossibleToTreat = fmt.Errorf("unable to union")

MD5 = HashWrapper(md5.New())
SHA1 = HashWrapper(sha1.New())
MD5 = HashWrapper(md5.New()) // skipcq: GO-S1023, GSC-G401
SHA1 = HashWrapper(sha1.New()) // skipcq: GO-S1025, GSC-G401
CRC64 = HashWrapper(crc64.New(crc64.MakeTable(crc64.ECMA)))
FNV64 = HashWrapper(fnv.New64())
FNV128 = HashWrapper(fnv.New128())
Expand Down

0 comments on commit df26e2e

Please sign in to comment.