remove deprecated rand.Seed calls

This commit is contained in:
ionutboangiu
2024-08-29 11:51:52 +03:00
committed by Dan Christian Bogos
parent 3187bca82e
commit ede004bc44
3 changed files with 0 additions and 7 deletions

View File

@@ -20,7 +20,6 @@ package engine
import (
"fmt"
"math/rand"
"runtime"
"sort"
"sync"
@@ -32,10 +31,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

@@ -236,7 +236,6 @@ func (sS *SessionS) setSTerminator(ctx *context.Context, s *Session, opts engine
return
}
if maxDelay != 0 {
rand.Seed(time.Now().Unix())
ttl += time.Duration(
rand.Int63n(maxDelay.Milliseconds()) * time.Millisecond.Nanoseconds())
}

View File

@@ -66,7 +66,6 @@ var (
func init() {
startCGRateSTime = time.Now()
math_rand.Seed(startCGRateSTime.UnixNano())
boolGenerator = newBoolGen()
}