containerd/snapshots
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
..
benchsuite chore: use go fix to cleanup old +build buildtag 2022-12-29 14:25:14 +08:00
btrfs btrfs: depend on kernel UAPI instead of libbtrfs 2023-02-10 10:07:34 +09:00
devmapper Fix retry logic within devmapper device deactivation 2023-02-09 23:40:18 +00:00
lcow snapshots: refactor metastore transaction 2023-01-05 15:53:23 +08:00
native snapshots: refactor metastore transaction 2023-01-05 15:53:23 +08:00
overlay chore: use go fix to cleanup old +build buildtag 2022-12-29 14:25:14 +08:00
proxy Use mount.Target to specify subdirectory of rootfs mount 2023-01-27 09:51:58 +08:00
storage metastore: Add WithTransaction convenience method 2022-12-07 23:49:09 -08:00
testsuite Stop using math/rand.Read and rand.Seed (deprecated in Go 1.20) 2023-02-16 03:50:23 +09:00
windows snapshots: refactor metastore transaction 2023-01-05 15:53:23 +08:00
snapshotter.go Add capability for snapshotters to declare support for UID remapping 2022-12-21 15:08:28 -03:00