Skip to content

Commit

Permalink
ignore gosec linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lovromazgon authored Sep 10, 2024
1 parent ea18011 commit a11dfe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rabin/rabin.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ var rabinTable = newRabinFingerprintTable()
func newRabinFingerprintTable() [256]uint64 {
fpTable := [256]uint64{}
for i := 0; i < 256; i++ {
fp := uint64(i)
fp := uint64(i) //nolint:gosec // this won't overflow, it's between 0 and 256
for j := 0; j < 8; j++ {
fp = (fp >> 1) ^ (rabinEmpty & -(fp & 1))
}
Expand Down

0 comments on commit a11dfe2

Please sign in to comment.