mirror of
https://github.com/securego/gosec.git
synced 2024-12-24 03:25:53 +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() {
|
||||
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{
|
||||
|
|
Loading…
Reference in a new issue