Replace stringid with simple rand reader

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
Derek McGowan
2018-07-12 16:40:45 -07:00
parent 825563b20c
commit 1984e451d5
5 changed files with 19 additions and 102 deletions

View File

@@ -18,7 +18,9 @@ package main
import (
"fmt"
"math/rand"
"os"
"time"
_ "github.com/containerd/containerd/diff/walking/plugin"
_ "github.com/containerd/containerd/gc/scheduler"
@@ -43,6 +45,10 @@ import (
"github.com/sirupsen/logrus"
)
func init() {
rand.Seed(time.Now().UnixNano())
}
func main() {
app := command.App()
logrus.Warn("This customized containerd is only for CI test, DO NOT use it for distribution.")

View File

@@ -18,13 +18,19 @@ package main
import (
"fmt"
"math/rand"
"os"
"time"
ctrapp "github.com/containerd/containerd/cmd/ctr/app"
cricli "github.com/containerd/cri/cli"
)
func init() {
rand.Seed(time.Now().UnixNano())
}
func main() {
app := ctrapp.New()
app.Commands = append(app.Commands, cricli.Command)