bevy/examples/games
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
..
alien_cake_addict.rs Switch to portable RNG in examples (#12644) 2024-03-22 20:25:49 +00:00
breakout.rs Breakout refactor (#12477) 2024-03-14 17:32:05 +00:00
contributors.rs Disentangle bevy_utils/bevy_core's reexported dependencies (#12313) 2024-03-07 02:30:15 +00:00
desk_toy.rs We must have googly eyes (new Game example) (#12331) 2024-03-06 22:21:41 +00:00
game_menu.rs Fix green colors becoming darker in various examples (#12328) 2024-03-05 23:42:03 +00:00
stepping.rs Migrate from LegacyColor to bevy_color::Color (#12163) 2024-02-29 19:35:12 +00:00