containerd/archive
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
..
compression Stop using math/rand.Read and rand.Seed (deprecated in Go 1.20) 2023-02-16 03:50:23 +09:00
tartest Fix annotation typo error 2018-12-14 23:18:42 +08:00
issues_test.go Add NoSameOwner option when unpacking tars 2022-09-09 17:07:26 -07:00
link_default.go archive: use Linkat on FreeBSD for hardlinks 2022-06-09 18:54:09 -07:00
link_freebsd.go archive: use Linkat on FreeBSD for hardlinks 2022-06-09 18:54:09 -07:00
tar_freebsd.go Remove redundant build tags 2021-08-05 22:27:46 -07:00
tar_linux_test.go test: use T.TempDir to create temporary test directory 2022-03-15 14:03:50 +08:00
tar_mostunix.go Cleanup build constraints 2022-12-08 09:36:20 -08:00
tar_opts_linux.go Remove redundant build tags 2021-08-05 22:27:46 -07:00
tar_opts_windows.go docs: rename main to master 2021-08-10 09:42:16 -07:00
tar_opts.go archive: set WithModTimeUpperBound when WithSourceDateEpoch is set 2022-11-22 22:21:44 +09:00
tar_test.go archive: improve TestSourceDateEpoch 2023-01-06 11:22:14 +09:00
tar_unix.go Cleanup build constraints 2022-12-08 09:36:20 -08:00
tar_windows.go Merge pull request #7344 from thaJeztah/archive_cleanup 2022-08-30 09:18:18 -07:00
tar.go lint: silence "SA1019: tar.TypeRegA has been deprecated... (staticheck)" 2023-02-16 03:50:23 +09:00
time_unix.go Cleanup build constraints 2022-12-08 09:36:20 -08:00
time_windows.go archive: windows: chtimes(): remove redundant conversion 2022-10-07 19:38:56 +02:00
time.go Licence header added 2018-02-19 10:32:26 +09:00