rust/src/librand
Ulrik Sverdrup 836f32e769 Use vec![elt; n] where possible
The common pattern `iter::repeat(elt).take(n).collect::<Vec<_>>()` is
exactly equivalent to `vec![elt; n]`, do this replacement in the whole
tree.

(Actually, vec![] is smart enough to only call clone n - 1 times, while
the former solution would call clone n times, and this fact is
virtually irrelevant in practice.)
2015-07-09 11:05:32 +02:00
..
distributions Hide SampleRange trait from docs 2015-07-01 12:05:57 +02:00
chacha.rs Removed many pointless calls to *iter() and iter_mut() 2015-06-10 21:14:03 +01:00
isaac.rs Removed many pointless calls to *iter() and iter_mut() 2015-06-10 21:14:03 +01:00
lib.rs Hide the Rand trait from docs 2015-06-29 08:08:59 -07:00
rand_impls.rs test: Fixup many library unit tests 2015-04-14 10:14:19 -07:00
reseeding.rs Use vec![elt; n] where possible 2015-07-09 11:05:32 +02:00