1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/testutil
Sebastiaan van Stijn 34f6b94255
gosec: G404: Use of weak random number generator
These should be ok to ignore for the purpose they're used

    pkg/namesgenerator/names-generator.go:843:36: G404: Use of weak random number generator (math/rand instead of crypto/rand) (gosec)
        name := fmt.Sprintf("%s_%s", left[rand.Intn(len(left))], right[rand.Intn(len(right))])
                                          ^
    pkg/namesgenerator/names-generator.go:849:36: G404: Use of weak random number generator (math/rand instead of crypto/rand) (gosec)
            name = fmt.Sprintf("%s%d", name, rand.Intn(10))
                                             ^
    testutil/stringutils.go:11:18: G404: Use of weak random number generator (math/rand instead of crypto/rand) (gosec)
            b[i] = letters[rand.Intn(len(letters))]
                           ^
    pkg/namesgenerator/names-generator.go:849:36: G404: Use of weak random number generator (math/rand instead of crypto/rand) (gosec)
            name = fmt.Sprintf("%s%d", name, rand.Intn(10))
                                             ^

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 6b0ecacd92)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-08-17 18:09:41 +02:00
..
daemon Update to Go 1.17.0, and gofmt with Go 1.17 2022-04-07 23:27:50 +02:00
environment Move use of debian:buster frozen image to debian:bullseye 2020-12-19 17:59:36 +01:00
fakecontext Remove some uses of testutil.HelperT 2019-09-23 14:06:27 +02:00
fakegit Remove some uses of testutil.HelperT 2019-09-23 14:06:27 +02:00
fakestorage Accept platform spec on container create 2020-03-20 16:10:36 -07:00
fixtures integration: ensurePlugin: disable go modules when building plugin 2021-07-15 22:25:29 +02:00
registry Use containerd dist libs for plugin pull/pull 2020-04-02 15:03:06 -07:00
request Update to Go 1.17.0, and gofmt with Go 1.17 2022-04-07 23:27:50 +02:00
doc.go
helper.go
helpers.go
stringutils.go gosec: G404: Use of weak random number generator 2022-08-17 18:09:41 +02:00
stringutils_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00