kayos@tcp.direct 2022-04-20 19:47:40 -07:00
parent a7e56290b9
commit c0b235d8e2
Signed by: kayos
GPG Key ID: 4B841471B4BEE979
2 changed files with 6 additions and 3 deletions

View File

@ -18,8 +18,9 @@ jobs:
- name: go vet -v ./...
run: go vet -v ./...
- name: gosec ./...
uses: securego/gosec@master
with:
args: -exclude=G404 ./...
run: | # https://github.com/securego/gosec/issues/469
export PATH=$PATH:$(go env GOPATH)/bin
go install github.com/securego/gosec/v2/cmd/gosec@latest
gosec ./...
- name: go build -v ./...
run: go build -v ./...

View File

@ -95,6 +95,8 @@ func (mm MarkovMap) Get(w1, w2 string) string {
return ""
}
// We don't care about cryptographically sound entropy here, ignore gosec G404.
/* #nosec */
r := rand.Intn(len(suffix))
return suffix[r]
}