]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #8491 : robertknight/rust/7722-reservoir_sampling, r=graydon
authorbors <bors@rust-lang.org>
Thu, 15 Aug 2013 13:56:06 +0000 (06:56 -0700)
committerbors <bors@rust-lang.org>
Thu, 15 Aug 2013 13:56:06 +0000 (06:56 -0700)
Fixes #7722

I had a couple of queries:
- Should this return an array or an iterator?
- Should this be a method on iterators or on the rng? I implemented it in RngUtils as it seemed to belong with shuffle().

1  2 
src/libstd/rand.rs

Simple merge