Merge pull request #67 from jbcrail/replace-range

Replace deprecated range function.
This commit is contained in:
Alex Crichton 2015-03-18 23:27:48 -07:00
commit bc9698c504
1 changed files with 1 additions and 1 deletions

View File

@ -1571,7 +1571,7 @@ impl<R: Rng> RandBigInt for R {
fn gen_biguint(&mut self, bit_size: usize) -> BigUint {
let (digits, rem) = bit_size.div_rem(&big_digit::BITS);
let mut data = Vec::with_capacity(digits+1);
for _ in range(0, digits) {
for _ in (0 .. digits) {
data.push(self.gen());
}
if rem > 0 {