diff options
| author | Jakob Unterwurzacher | 2025-12-14 11:38:45 +0100 |
|---|---|---|
| committer | Jakob Unterwurzacher | 2025-12-14 11:39:31 +0100 |
| commit | 745276fe6e2b81570e5c84625699d632da5fd6a9 (patch) | |
| tree | 7438205893d5a839766d80fd948eec818b5e66d4 /tests/example_filesystems/v0.7 | |
| parent | 4762992b706a9d1950a86248720199ae8cd5d3e5 (diff) | |
Drop deprecated rand.Seed calls
$ staticcheck --version
staticcheck 2025.1.1 (0.6.1)
$ staticcheck ./...
contrib/findholes/holes/holes.go:179:2: rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: As of Go 1.20 there is no reason to call Seed with a random value. Programs that call Seed with a known value to get a specific sequence of results should use New(NewSource(seed)) to obtain a local random generator. (SA1019)
tests/defaults/acl_test.go:24:2: rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: As of Go 1.20 there is no reason to call Seed with a random value. Programs that call Seed with a known value to get a specific sequence of results should use New(NewSource(seed)) to obtain a local random generator. (SA1019)
tests/plaintextnames/file_holes_test.go:143:2: rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: As of Go 1.20 there is no reason to call Seed with a random value. Programs that call Seed with a known value to get a specific sequence of results should use New(NewSource(seed)) to obtain a local random generator. (SA1019)
Diffstat (limited to 'tests/example_filesystems/v0.7')
0 files changed, 0 insertions, 0 deletions
