Skip to content

Commit 02464ab

Browse files
committed
bump rand to 0.8
1 parent 170586e commit 02464ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ version = ">= 1.0"
3030
optional = true
3131

3232
[dev-dependencies]
33-
rand = "0.7"
33+
rand = "0.8"
3434
wgpu = { version = "0.20", features = ["spirv"] }
3535
pollster = "0.2.4"
3636
env_logger = "0.11.0"

examples/audio-whitenoise.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ impl AudioCallback for MyCallback {
1616

1717
// Generate white noise
1818
for x in out.iter_mut() {
19-
*x = (rng.gen_range(0.0, 2.0) - 1.0) * self.volume;
19+
*x = (rng.gen_range(0.0..2.0) - 1.0) * self.volume;
2020
}
2121
}
2222
}

0 commit comments

Comments
 (0)