Skip to content

Commit a60edaf

Browse files
authored
Merge pull request containerd#10330 from AkihiroSuda/remove-pkg-seed
Remove pkg/seed
2 parents e4c61fd + 86b8a88 commit a60edaf

File tree

5 files changed

+0
-101
lines changed

5 files changed

+0
-101
lines changed

cmd/containerd/main.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,11 @@ import (
2323

2424
"github.com/containerd/containerd/v2/cmd/containerd/command"
2525
"github.com/containerd/containerd/v2/internal/hasher"
26-
"github.com/containerd/containerd/v2/pkg/seed" //nolint:staticcheck // Global math/rand seed is deprecated, but still used by external dependencies
2726

2827
_ "github.com/containerd/containerd/v2/cmd/containerd/builtins"
2928
)
3029

3130
func init() {
32-
//nolint:staticcheck // Global math/rand seed is deprecated, but still used by external dependencies
33-
seed.WithTimeAndRand()
3431
crypto.RegisterHash(crypto.SHA256, hasher.NewSHA256)
3532
}
3633

cmd/ctr/main.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,12 @@ import (
2323

2424
"github.com/containerd/containerd/v2/cmd/ctr/app"
2525
"github.com/containerd/containerd/v2/internal/hasher"
26-
"github.com/containerd/containerd/v2/pkg/seed" //nolint:staticcheck // Global math/rand seed is deprecated, but still used by external dependencies
2726
"github.com/urfave/cli/v2"
2827
)
2928

3029
var pluginCmds = []*cli.Command{}
3130

3231
func init() {
33-
//nolint:staticcheck // Global math/rand seed is deprecated, but still used by external dependencies
34-
seed.WithTimeAndRand()
3532
crypto.RegisterHash(crypto.SHA256, hasher.NewSHA256)
3633
}
3734

pkg/seed/seed.go

Lines changed: 0 additions & 43 deletions
This file was deleted.

pkg/seed/seed_linux.go

Lines changed: 0 additions & 24 deletions
This file was deleted.

pkg/seed/seed_other.go

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)