Update most Rust dependencies (#2259)

This commit is contained in:
Keavon Chambers
2025-02-04 02:41:13 -08:00
committed by GitHub
parent 6d52151d60
commit 0d8b25d37f
11 changed files with 969 additions and 536 deletions

View File

@@ -507,7 +507,7 @@ fn noise_pattern(
for y in 0..height {
for x in 0..width {
let pixel = image.get_pixel_mut(x, y).unwrap();
let luminance = rng.gen_range(0.0..1.) as f32;
let luminance = rng.random_range(0.0..1.) as f32;
*pixel = Color::from_luminance(luminance);
}
}