mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
use unixnano for random
This commit is contained in:
@@ -129,7 +129,7 @@ func (rbcs *RandomBalanceChainSorter) Sort() {
|
||||
src := *rbcs
|
||||
// randomize balance chain
|
||||
dest := make([]*Balance, len(src))
|
||||
rand.Seed(time.Now().Unix())
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
perm := rand.Perm(len(src))
|
||||
for i, v := range perm {
|
||||
dest[v] = src[i]
|
||||
|
||||
Reference in New Issue
Block a user