diff --git a/engine/resources.go b/engine/resources.go index dd4d28be6..3a5252e37 100644 --- a/engine/resources.go +++ b/engine/resources.go @@ -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 diff --git a/sessions/sessions.go b/sessions/sessions.go index 16e7fe3de..17762645f 100644 --- a/sessions/sessions.go +++ b/sessions/sessions.go @@ -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()) } diff --git a/utils/coreutils.go b/utils/coreutils.go index 2ad027668..285889a80 100644 --- a/utils/coreutils.go +++ b/utils/coreutils.go @@ -66,7 +66,6 @@ var ( func init() { startCGRateSTime = time.Now() - math_rand.Seed(startCGRateSTime.UnixNano()) boolGenerator = newBoolGen() }