app/vmselect: use consistent randomizer in tests

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/3683
This commit is contained in:
Aliaksandr Valialkin 2023-01-23 19:27:23 -08:00
parent f2b40dbe9a
commit 30e968df6d
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -35,9 +35,10 @@ var (
)
var benchValues = func() []float64 {
r := rand.New(rand.NewSource(1))
values := make([]float64, 1000)
for i := range values {
values[i] = rand.Float64() * 100
values[i] = r.Float64() * 100
}
return values
}()