mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 17:53:56 +00:00
test: Fix shootout-fasta
This commit is contained in:
parent
57e160b29d
commit
1e8ae18ba1
@ -45,7 +45,7 @@ fn select_random(r: u32, genelist: ~[aminoacids]) -> char {
|
||||
|
||||
fn make_random_fasta(wr: io::writer, id: str, desc: str, genelist: ~[aminoacids], n: int) {
|
||||
wr.write_line(">" + id + " " + desc);
|
||||
let rng = @{mut last: std::rand::rng().next()};
|
||||
let rng = @{mut last: rand::rng().next()};
|
||||
let mut op: str = "";
|
||||
for uint::range(0u, n as uint) |_i| {
|
||||
str::push_char(op, select_random(myrandom_next(rng, 100u32),
|
||||
|
Loading…
Reference in New Issue
Block a user