Skip to content

Commit

Permalink
Merge pull request #296 from tonistiigi/seed-fix
Browse files Browse the repository at this point in the history
cmd: seed math rand
  • Loading branch information
tiborvass authored May 18, 2020
2 parents 42448c5 + 7f7acf7 commit e5217f2
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/buildx/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"os"

"github.com/containerd/containerd/pkg/seed"
"github.com/docker/buildx/commands"
"github.com/docker/buildx/version"
"github.com/docker/cli/cli-plugins/manager"
Expand All @@ -24,6 +25,10 @@ import (

var experimental string

func init() {
seed.WithTimeAndRand()
}

func main() {
if os.Getenv("DOCKER_CLI_PLUGIN_ORIGINAL_CLI_COMMAND") == "" {
if len(os.Args) < 2 || os.Args[1] != manager.MetadataSubcommandName {
Expand Down
38 changes: 38 additions & 0 deletions vendor/github.com/containerd/containerd/pkg/seed/seed.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions vendor/github.com/containerd/containerd/pkg/seed/seed_linux.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions vendor/github.com/containerd/containerd/pkg/seed/seed_other.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ github.com/containerd/containerd/filters
github.com/containerd/containerd/images
github.com/containerd/containerd/labels
github.com/containerd/containerd/log
github.com/containerd/containerd/pkg/seed
github.com/containerd/containerd/platforms
github.com/containerd/containerd/reference
github.com/containerd/containerd/remotes
Expand Down

0 comments on commit e5217f2

Please sign in to comment.