Fixed GenerateRandStatsForTime in saving_test.go

This commit is contained in:
Dmitry Lyukov
2016-03-30 00:56:11 +03:00
parent e5e098899f
commit c3f5dc98ef

View File

@@ -14,7 +14,7 @@ func GenerateRandStatsForTime(N int) []StatForTime {
rnd := rand.New(rand.NewSource(42))
for i := 0; i < N; i++ {
var curStat StatForTime
curStat.Init()
curStat.Init(rnd.Int63())
for keyNum := range keyMap {
if rnd.Float32() > 0.7 {
curStat.keys[keyNum] = rnd.Intn(5000)