rust/lfprng/src/lib.rs
changeset 13935 75eaf7c71789
parent 13904 3f0576157749
child 14027 cef0c685fda8
equal deleted inserted replaced
13934:9c112f2ae02d 13935:75eaf7c71789
    47 }
    47 }
    48 
    48 
    49 impl Iterator for LaggedFibonacciPRNG {
    49 impl Iterator for LaggedFibonacciPRNG {
    50     type Item = u32;
    50     type Item = u32;
    51 
    51 
    52     fn next(&mut self) -> Option<u32> {
    52     fn next(&mut self) -> Option<Self::Item> {
    53         self.get_next();
    53         self.get_next();
    54         Some(self.get_next())
    54         Some(self.get_next())
    55     }
    55     }
    56 }
    56 }
    57 
    57