1 2 3 4 5 6 7 8 9 10 11
extern crate rand; use rand::prelude::*; use super::System; impl System { pub fn irng(&mut self) -> &mut impl Rng { self.random.xrng() } }