bevy/examples/ui
Tim Leach b09f3bdfe6
Switch to portable RNG in examples (#12644)
# Objective

Fixes issue #12613 - the RNG used in examples is _deterministic_, but
its implementation is not _portable_ across platforms. We want to switch
to using a portable RNG that does not vary across platforms, to ensure
certain examples play out the same way every time.

## Solution

Replace all occurences of `rand::rngs::StdRng` with
`rand_chacha::ChaCha8Rng`, as recommended in issue #12613

---

## Changelog

- Add `rand_chacha` as a new dependency (controversial?)
- Replace all occurences of `rand::rngs::StdRng` with
`rand_chacha::ChaCha8Rng`
2024-03-22 20:25:49 +00:00
..
borders.rs Update borders example to match rounded_borders example (#12630) 2024-03-21 18:38:58 +00:00
button.rs Add border radius to UI nodes (adopted) (#12500) 2024-03-19 22:44:00 +00:00
display_and_visibility.rs Decouple BackgroundColor from UiImage (#11165) 2024-03-03 21:35:50 +00:00
flex_layout.rs Fix "dark grey" colors becoming lighter in various examples (#12333) 2024-03-06 05:19:59 +00:00
font_atlas_debug.rs Switch to portable RNG in examples (#12644) 2024-03-22 20:25:49 +00:00
grid.rs Fix pink colors in examples (#12451) 2024-03-18 17:44:46 +00:00
overflow.rs Fix "dark grey" colors becoming lighter in various examples (#12333) 2024-03-06 05:19:59 +00:00
overflow_debug.rs Fix "dark grey" colors becoming lighter in various examples (#12333) 2024-03-06 05:19:59 +00:00
relative_cursor_position.rs Migrate from LegacyColor to bevy_color::Color (#12163) 2024-02-29 19:35:12 +00:00
render_ui_to_texture.rs Migrate from LegacyColor to bevy_color::Color (#12163) 2024-02-29 19:35:12 +00:00
rounded_borders.rs Add border radius to UI nodes (adopted) (#12500) 2024-03-19 22:44:00 +00:00
size_constraints.rs Decouple BackgroundColor from UiImage (#11165) 2024-03-03 21:35:50 +00:00
text.rs Migrate from LegacyColor to bevy_color::Color (#12163) 2024-02-29 19:35:12 +00:00
text_debug.rs Fix green colors becoming darker in various examples (#12328) 2024-03-05 23:42:03 +00:00
text_wrap_debug.rs Migrate from LegacyColor to bevy_color::Color (#12163) 2024-02-29 19:35:12 +00:00
transparency_ui.rs Decouple BackgroundColor from UiImage (#11165) 2024-03-03 21:35:50 +00:00
ui.rs Add a gizmo-based overlay to show UI node outlines (Adopted) (#11237) 2024-03-18 18:11:06 +00:00
ui_material.rs Migrate from LegacyColor to bevy_color::Color (#12163) 2024-02-29 19:35:12 +00:00
ui_scaling.rs Migrate from LegacyColor to bevy_color::Color (#12163) 2024-02-29 19:35:12 +00:00
ui_texture_atlas.rs Decouple BackgroundColor from UiImage (#11165) 2024-03-03 21:35:50 +00:00
ui_texture_atlas_slice.rs Slicing support for texture atlas (#12059) 2024-03-05 16:05:39 +00:00
ui_texture_slice.rs Slicing support for texture atlas (#12059) 2024-03-05 16:05:39 +00:00
viewport_debug.rs Fix green colors becoming darker in various examples (#12328) 2024-03-05 23:42:03 +00:00
window_fallthrough.rs Migrate from LegacyColor to bevy_color::Color (#12163) 2024-02-29 19:35:12 +00:00
z_index.rs Fix green colors becoming darker in various examples (#12328) 2024-03-05 23:42:03 +00:00