Skip to content

Commit

Permalink
stop accidental turbo mode (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
jr1221 authored Dec 16, 2024
1 parent 07a1720 commit 1d22ca9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/simulatable_message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ impl SimEnum {
/// Base logic for enum sim
impl SimShared for SimEnum {
fn update(&mut self) {
self.component.last_update = Instant::now();
let mut rng = rand::thread_rng();
for i in 0..self.component.value.len() {
let prob = rng.gen_range(0f32..1f32);
Expand Down

0 comments on commit 1d22ca9

Please sign in to comment.