remove deprecated math/rand.Seed calls

see https://pkg.go.dev/math/rand#Seed
This commit is contained in:
ionutboangiu
2024-09-05 18:27:25 +03:00
committed by Dan Christian Bogos
parent 0aa5cf38e8
commit df7b65833a
6 changed files with 0 additions and 12 deletions

View File

@@ -30,10 +30,6 @@ import (
"github.com/cgrates/cgrates/utils"
)
func init() {
rand.Seed(time.Now().UnixNano())
}
// ResourceProfile represents the user configuration for the resource
type ResourceProfile struct {
Tenant string

View File

@@ -180,7 +180,6 @@ func (rbcs *RandomBalancesSorter) Sort() {
src := *rbcs
// randomize balance chain
dest := make([]*Balance, len(src))
rand.Seed(time.Now().UnixNano())
perm := rand.Perm(len(src))
for i, v := range perm {
dest[v] = src[i]