Fix audio whitenoise example
@@ -16,7 +16,7 @@ impl AudioCallback for MyCallback {
// Generate white noise
for x in out.iter_mut() {
- *x = (rng.next_f32()*2.0 - 1.0) * self.volume;
+ *x = (rng.gen_range(0.0, 2.0) - 1.0) * self.volume;
}
}
}
