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() {
good, _ := rand.Read(nil)
println(good)
i := mrand.Int31()
println(i)
}`}, 0, gosec.NewConfig()}}
bad := mrand.Int31()
println(bad)
}`}, 1, gosec.NewConfig()}}
// SampleCodeG501 - Blacklisted import MD5
SampleCodeG501 = []CodeSample{