diff --git a/src/main.rs b/src/main.rs index 5791fdb..55f762f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -29,8 +29,8 @@ struct Cli { fn main() { let cli = Cli::parse(); - let mut sys = DLASystem::::new( - SmallRng::seed_from_u64(cli.seed), + let mut sys = DLASystem::::new( + ThreadRng::default(), cli.max_particles, cli.stick_probability ); diff --git a/src/system/model.rs b/src/system/model.rs index 7bad802..737b215 100644 --- a/src/system/model.rs +++ b/src/system/model.rs @@ -29,7 +29,7 @@ pub struct DLASystem> { impl> DLASystem { pub fn new(rng: R, max_particles: usize, stick_probability: f32) -> DLASystem { - let mut sys: DLASystem = DLASystem { + let mut sys: DLASystem = DLASystem { rng, stick_probability, max_particles,