mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 12:31:07 +01: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
@ -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 New Issue
Block a user