mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
app/vmselect: use consistent randomizer in tests
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/3683
This commit is contained in:
parent
f2b40dbe9a
commit
30e968df6d
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}()
|
||||
|
|
Loading…
Reference in a new issue