crosvm/gpu_display
Pierre-Clément Tosi a6d39c5fa9 rand: Bump dependency to 0.9.2
Use rand::random() or rand::Rng::fill() in place of the now-removed
OsRng.fill_bytes(), note that the generic function now supports arrays
of any length.

Replace the deprecated rand::thread_rng() with its new name rand::rng()
or with new alternatives such as rand::random_range() where appropriate.

In fuzz/, update the impl of rand_core::RndCore which now does not
require implementing try_fill_bytes() (moved to TryRndCore) so remove it
as the function was only used by unit tests (which can also be removed).

As a result, CrosVM now follow the clean split of all client code only
depending on rand::Rnd (no imports of RndCore left) and the one provided
(FuzzRng) uses the rand_core crate, as recommended by the crate docs.

BUG=b:460349550
TEST=tools/presubmit

Change-Id: Icf0121297efcb0388e8aab17394c21457edbb119
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/7253053
Auto-Submit: Pierre-Clément Tosi <ptosi@google.com>
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Commit-Queue: Pierre-Clément Tosi <ptosi@google.com>
2026-01-30 03:12:59 -08:00
..
examples Automatic clippy fix for Rust 1.88 2025-11-17 10:25:21 -08:00
protocol gpu_display: Add copy of xdg shell protocol xml 2025-03-21 09:51:46 -07:00
src rand: Bump dependency to 0.9.2 2026-01-30 03:12:59 -08:00
build.rs Automatic clippy fix for Rust 1.88 2025-11-17 10:25:21 -08:00
Cargo.toml Support AHardwareBuffer as RutabagaHandle 2026-01-05 18:39:39 -08:00
OWNERS gpu_display: establish crate OWNERS 2024-04-19 17:55:42 +00:00