containerd/pkg
Akihiro Suda d8b68e3ccc
Stop using math/rand.Read and rand.Seed (deprecated in Go 1.20)
From golangci-lint:

> SA1019: rand.Read has been deprecated since Go 1.20 because it
>shouldn't be used: For almost all use cases, crypto/rand.Read is more
>appropriate. (staticcheck)

> SA1019: rand.Seed has been deprecated since Go 1.20 and an alternative
>has been available since Go 1.0: Programs that call Seed and then expect
>a specific sequence of results from the global random source (using
>functions such as Int) can be broken when a dependency changes how
>much it consumes from the global random source. To avoid such breakages,
>programs that need a specific result sequence should use
>NewRand(NewSource(seed)) to obtain a random generator that other
>packages cannot access. (staticcheck)

See also:

- https://pkg.go.dev/math/rand@go1.20#Read
- https://pkg.go.dev/math/rand@go1.20#Seed

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2023-02-16 03:50:23 +09:00
..
apparmor pkg/apparmor: clarify Godoc 2023-02-10 10:23:59 -07:00
atomic use containerd/project header test 2020-04-22 19:35:37 -05:00
blockio pkg: rename {blockio,rdt}_default.go -> nonlinux.go 2023-02-12 08:35:17 +08:00
cap lint: remove //nolint:dupword that are no longer needed 2023-02-16 03:50:23 +09:00
cleanup Add cleanup package for context management during cleanup 2023-01-03 12:30:26 -08:00
cri Stop using math/rand.Read and rand.Seed (deprecated in Go 1.20) 2023-02-16 03:50:23 +09:00
dialer chore: use go fix to cleanup old +build buildtag 2022-12-29 14:25:14 +08:00
epoch pkg/epoch: drop timezone 2023-01-31 23:26:02 +09:00
failpoint Run gofmt 1.19 2022-08-04 18:18:33 -07:00
hasher digest: use github.com/minio/sha256-simd 2022-12-08 18:50:00 +09:00
ioutil Run gofmt 1.19 2022-08-04 18:18:33 -07:00
kmutex Stop using math/rand.Read and rand.Seed (deprecated in Go 1.20) 2023-02-16 03:50:23 +09:00
netns Merge pull request #7879 from fuweid/clean-build-tags 2022-12-30 00:22:03 -08:00
nri chore: use go fix to cleanup old +build buildtag 2022-12-29 14:25:14 +08:00
oom chore: use go fix to cleanup old +build buildtag 2022-12-29 14:25:14 +08:00
os Move WithMounts to specs 2023-01-11 13:03:59 -08:00
process Use mount.Target to specify subdirectory of rootfs mount 2023-01-27 09:51:58 +08:00
progress update golangci-lint to v1.49.0 2022-10-12 14:41:01 +02:00
randutil Stop using math/rand.Read and rand.Seed (deprecated in Go 1.20) 2023-02-16 03:50:23 +09:00
rdt pkg: rename {blockio,rdt}_default.go -> nonlinux.go 2023-02-12 08:35:17 +08:00
registrar feat: replace github.com/pkg/errors to errors 2022-01-07 10:27:03 +08:00
runtimeoptions/v1 Update runtime options to include bytes blob 2022-12-07 10:55:06 -08:00
schedcore add runc shim support for sched core 2021-10-08 16:18:09 +00:00
seccomp chore: use go fix to cleanup old +build buildtag 2022-12-29 14:25:14 +08:00
seed Stop using math/rand.Read and rand.Seed (deprecated in Go 1.20) 2023-02-16 03:50:23 +09:00
seutil seutil: Fix setting the "container_kvm_t" label 2021-12-14 00:09:17 +01:00
shutdown Expose Done and Err in Shutdown service 2022-11-16 22:03:44 -08:00
snapshotters Export remote snapshotter label handler 2023-02-01 23:03:23 +09:00
stdio Add logging binary support when terminal is true 2020-08-25 17:28:29 -07:00
streaming go.mod: github.com/containerd/typeurl/v2 v2.1.0 2023-02-11 23:39:52 +09:00
testutil chore: use go fix to cleanup old +build buildtag 2022-12-29 14:25:14 +08:00
timeout feat: use rwmutex instead 2021-11-16 11:06:40 +08:00
transfer Merge pull request #7964 from dmcgowan/transfer-image-store-references 2023-02-14 11:22:27 +09:00
truncindex error strings should not be capitalized 2023-02-15 14:30:36 +08:00
ttrpcutil using ContextDialer instead 2022-07-20 22:53:42 +08:00
unpack Stop using math/rand.Read and rand.Seed (deprecated in Go 1.20) 2023-02-16 03:50:23 +09:00
userns chore: use go fix to cleanup old +build buildtag 2022-12-29 14:25:14 +08:00