]> git.lizzy.rs Git - rust.git/commit
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)
commit435020ecc42c472302dcbcce64abc1a9943b80b9
treec0b61f72985bd9b917fa4a7609220b6d934f6344
parent77739a70849293f67aba8ce3379e050cd319d1ce
parent11b3d76fb6ae627aea1b2a3a3de2807c21f9e720
auto merge of #8491 : robertknight/rust/7722-reservoir_sampling, r=graydon

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().
src/libstd/rand.rs