Replace deprecated range function.

This commit is contained in:
Joseph Crail 2015-03-19 00:15:55 -04:00
parent 575cc09136
commit 5a0835d5d7
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 {