From da59983eab3dcee3887213b04574ff0770783c9e Mon Sep 17 00:00:00 2001
From: Benjamin Wenger <ben@elixxir.ioo>
Date: Tue, 30 Aug 2022 15:43:43 -0700
Subject: [PATCH] changed the source of RNG for mutate timestamp test to see if
 it fixes the test

---
 channels/mutateTimestamp_test.go | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/channels/mutateTimestamp_test.go b/channels/mutateTimestamp_test.go
index ba58728c4..03faa895d 100644
--- a/channels/mutateTimestamp_test.go
+++ b/channels/mutateTimestamp_test.go
@@ -1,7 +1,7 @@
 package channels
 
 import (
-	"crypto/rand"
+	"math/rand"
 	"testing"
 	"time"
 
@@ -29,9 +29,11 @@ func TestMutateTimestampDeltaAverage(t *testing.T) {
 	t1 := time.Now()
 	sum := int64(0)
 
+	rng := rand.New(rand.NewSource(time.Now().UnixNano()))
+
 	for i := 0; i < samples; i++ {
 		var msgID channel.MessageID
-		rand.Read(msgID[:])
+		rng.Read(msgID[:])
 		t2 := mutateTimestamp(t1, msgID)
 		delta := t2.Sub(t1)
 		sum += abs(int64(delta))
-- 
GitLab