Fix unit test when checking a mix of good and bad random functions

Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
This commit is contained in:
Cosmin Cojocar 2020-06-15 12:10:08 +02:00 committed by Cosmin Cojocar
parent 6bbf8f9cbc
commit fe07fcf276

View file

@ -1906,9 +1906,9 @@ import (
func main() { func main() {
good, _ := rand.Read(nil) good, _ := rand.Read(nil)
println(good) println(good)
i := mrand.Int31() bad := mrand.Int31()
println(i) println(bad)
}`}, 0, gosec.NewConfig()}} }`}, 1, gosec.NewConfig()}}
// SampleCodeG501 - Blacklisted import MD5 // SampleCodeG501 - Blacklisted import MD5
SampleCodeG501 = []CodeSample{ SampleCodeG501 = []CodeSample{