Seed random on ctr and containerd startup
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
@@ -21,11 +21,16 @@ import (
|
||||
"os"
|
||||
|
||||
"github.com/containerd/containerd/cmd/ctr/app"
|
||||
"github.com/containerd/containerd/pkg/seed"
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
var pluginCmds = []cli.Command{}
|
||||
|
||||
func init() {
|
||||
seed.WithTimeAndRand()
|
||||
}
|
||||
|
||||
func main() {
|
||||
app := app.New()
|
||||
app.Commands = append(app.Commands, pluginCmds...)
|
||||
|
Reference in New Issue
Block a user