Path: blob/main/release-content/migration-guides/glam-rand-upgrades.md
6592 views
---
---
With newer versions of glam
& encase
, the updated versions don't seem to have introduced breakages, though as always, best to consult their docs 1 2 for any changes.
rand
changes are more extensive, with changes such as thread_rng()
-> rng()
, from_entropy()
-> from_os_rng()
, and so forth. RngCore
is now split into infallible RngCore
and fallible TryRngCore
, and the distributions
module has been renamed to distr
. Most of this affects only internals, and doesn't directly affect Bevy's APIs. For the full set of changes, see rand
migration notes.
getrandom
is also updated, and will require additional configuration when building Bevy for WASM/Web (if also using rand
). The full details of how to do this is in the getrandom
docs 1 2.