remove random

This commit is contained in:
Nan Deng 2014-06-12 14:33:10 -07:00
parent caafb0d7e3
commit 33b2167434

View File

@ -15,8 +15,6 @@
package container
import (
crand "crypto/rand"
"encoding/binary"
"math/rand"
"sync"
"testing"
@ -25,14 +23,6 @@ import (
"github.com/google/cadvisor/info"
)
func init() {
// NOTE(dengnan): Even if we picked a good random seed,
// the random number from math/rand is still not cryptographically secure!
var seed int64
binary.Read(crand.Reader, binary.LittleEndian, &seed)
rand.Seed(seed)
}
type mockContainer struct {
}
@ -58,7 +48,6 @@ func TestMaxMemoryUsage(t *testing.T) {
memTrace[i] = uint64(i + 1)
}
handler, err := AddStatsSummary(
// &randomMemoryUsageContainer{},
containerWithTrace(1*time.Second, nil, memTrace),
&StatsParameter{
Sampler: "uniform",