Skip to content

Commit

Permalink
Use string constructor, not convert in random_seq method
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben J. Ward committed Oct 11, 2018
1 parent 4c3e6fb commit 2a7a064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Testing.jl
Expand Up @@ -106,7 +106,7 @@ function random_seq(n::Integer, nts, probs)
for i in 1:n
x[i] = nts[searchsorted(cumprobs, rand()).start]
end
return convert(String, x)
return String(x)
end

function random_dna(n, probs=[0.24, 0.24, 0.24, 0.24, 0.04])
Expand Down

0 comments on commit 2a7a064

Please sign in to comment.