Skip to content

Commit 70be02f

Browse files
authored
Merge pull request moby#5028 from tonistiigi/deprecated-seed
remove deprecated seed calls
2 parents bd5d50e + c241bca commit 70be02f

File tree

6 files changed

+0
-100
lines changed

6 files changed

+0
-100
lines changed

cmd/buildkitd/main.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import (
1616
"sync"
1717

1818
"github.com/containerd/containerd/defaults"
19-
"github.com/containerd/containerd/pkg/seed" //nolint:staticcheck // SA1019 deprecated
2019
"github.com/containerd/containerd/pkg/userns"
2120
"github.com/containerd/containerd/platforms"
2221
"github.com/containerd/containerd/remotes/docker"
@@ -81,8 +80,6 @@ func init() {
8180
apicaps.ExportedProduct = "buildkit"
8281
stack.SetVersionInfo(version.Version, version.Revision)
8382

84-
//nolint:staticcheck // SA1019 deprecated
85-
seed.WithTimeAndRand()
8683
if reexec.Init() {
8784
os.Exit(0)
8885
}

solver/scheduler_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import (
2222
)
2323

2424
func init() {
25-
rand.Seed(time.Now().UnixNano()) //nolint:staticcheck // Ignore SA1019. No way to get the automatically generated seed since Go 1.20.
2625
if debugScheduler {
2726
logrus.SetOutput(os.Stdout)
2827
logrus.SetLevel(logrus.DebugLevel)

vendor/github.com/containerd/containerd/pkg/seed/seed.go

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

vendor/github.com/containerd/containerd/pkg/seed/seed_linux.go

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

vendor/github.com/containerd/containerd/pkg/seed/seed_other.go

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

vendor/modules.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ github.com/containerd/containerd/pkg/kmutex
314314
github.com/containerd/containerd/pkg/randutil
315315
github.com/containerd/containerd/pkg/runtimeoptions/v1
316316
github.com/containerd/containerd/pkg/seccomp
317-
github.com/containerd/containerd/pkg/seed
318317
github.com/containerd/containerd/pkg/snapshotters
319318
github.com/containerd/containerd/pkg/streaming
320319
github.com/containerd/containerd/pkg/transfer

0 commit comments

Comments
 (0)