mirror of
https://github.com/securego/gosec.git
synced 2024-12-25 03:55:54 +00:00
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:
parent
6bbf8f9cbc
commit
fe07fcf276
1 changed files with 3 additions and 3 deletions
|
@ -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{
|
||||||
|
|
Loading…
Reference in a new issue