mozilla/rust — pull request #13111 by sstewartgallus (2014-03-24 04:35:15+00:00)
Title: Replaced StdRng::new with task_rng

I replaced StdRng::new with task_rng in a few tests and benchmarks (not
in the parts being benchmarked only in the setup). This will make
benchmarks and tests go by slightly faster.

I didn't replace the StdRng::new with task_rng in test/bench/noise.rs
line 44 because the StdRng::new part is being measured by the
benchmark. I think the StdRng::new() part is a nonessential part of the
benchmark though so maybe it should be replaced.