From 5ba063fa20cfe5500718a8f24b2a6f921d64e0d6 Mon Sep 17 00:00:00 2001 From: Willow Carretero Chavez Date: Mon, 11 Dec 2023 22:41:02 -0500 Subject: [PATCH] Remove deprecated random.Seed --- random/random.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/random/random.go b/random/random.go index dae13266..363b56b4 100644 --- a/random/random.go +++ b/random/random.go @@ -51,7 +51,7 @@ func RNASequence(length int, seed int64) (string, error) { func randomNucelotideSequence(length int, seed int64, alphabet []rune) string { alphabetLength := len(alphabet) - rand.Seed(seed) + rand := rand.New(rand.NewSource(seed)) randomSequence := make([]rune, length) for basepair := range randomSequence {