Skip to content

Commit

Permalink
Pick using source instead of global rand
Browse files Browse the repository at this point in the history
  • Loading branch information
carreter committed Dec 12, 2023
1 parent 9f77db1 commit f0c83aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synthesis/codon/codon.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ func (table *TranslationTable) OptimizeSequence(aminoAcids string, randomState .
if !ok {
return "", invalidAminoAcidError{aminoAcid}
}
chooser.PickSource(rand)
codon := chooser.PickSource(rand)

codons.WriteString(chooser.Pick().(string))
codons.WriteString(codon.(string))
}

return codons.String(), nil
Expand Down

0 comments on commit f0c83aa

Please sign in to comment.