Skip to content

Commit

Permalink
Remove deprecated random.Seed
Browse files Browse the repository at this point in the history
  • Loading branch information
carreter committed Dec 12, 2023
1 parent f0c83aa commit 5ba063f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion random/random.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5ba063f

Please sign in to comment.