chore(deps): bump getrandom

Bumps the patch-updates group with 1 update in the / directory: [getrandom](https://github.com/rust-random/getrandom).


Updates `getrandom` from 0.2.15 to 0.3.1
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-random/getrandom/compare/v0.2.15...v0.3.1)

---
updated-dependencies:
- dependency-name: getrandom
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: patch-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
dependabot[bot] 2025-02-17 18:41:17 +00:00 committed by Erich Gubler
parent c03176f3eb
commit 2fca74a8d9
5 changed files with 9 additions and 4 deletions

View File

@ -1,2 +1,5 @@
[alias]
xtask = "run --manifest-path xtask/Cargo.toml --"
[target.'cfg(target_arch = "wasm32")']
rustflags = '--cfg getrandom_backend="wasm_js"'

4
Cargo.lock generated
View File

@ -1575,8 +1575,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43a49c392881ce6d5c3b8cb70f98717b7c07aabbdff06687b9030dbfbe2725f8"
dependencies = [
"cfg-if",
"js-sys",
"libc",
"wasi 0.13.3+wasi-0.2.2",
"wasm-bindgen",
"windows-targets 0.52.6",
]
@ -4593,7 +4595,7 @@ dependencies = [
"env_logger",
"fern",
"flume",
"getrandom 0.2.15",
"getrandom 0.3.1",
"glam",
"ktx2",
"log",

View File

@ -94,7 +94,7 @@ env_logger = "0.11"
fern = "0.7"
flume = "0.11"
futures-lite = "2"
getrandom = "0.2"
getrandom = "0.3"
glam = "0.29"
hashbrown = { version = "0.14.5", default-features = false, features = [
"ahash",

View File

@ -34,7 +34,7 @@ bytemuck.workspace = true
cfg-if.workspace = true
encase = { workspace = true, features = ["glam"] }
flume.workspace = true
getrandom.workspace = true
getrandom = { workspace = true, features = ["wasm_js"] }
glam = { workspace = true, features = ["bytemuck"] }
ktx2.workspace = true
log.workspace = true

View File

@ -31,7 +31,7 @@ async fn run() {
fn generate_rand() -> u16 {
let mut bytes = [0u8; 2];
getrandom::getrandom(&mut bytes[..]).unwrap();
getrandom::fill(&mut bytes[..]).unwrap();
u16::from_le_bytes(bytes)
}