Skip to content

Commit d058b33

Browse files
committed
Update rand_core to 0.9.3
We could easily implement both rand_core 0.6 and rand_core 0.9, if there's demand to do so. I prefer to only implement the latest version to avoid accumulating technical debt.
1 parent eea14eb commit d058b33

File tree

6 files changed

+6
-14
lines changed

6 files changed

+6
-14
lines changed

rp2040-hal/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ The Minimum-Supported Rust Version (MSRV) for the next release is 1.81
1616
### Changed
1717

1818
- Update to pio 0.3.0
19+
- Update rand\_core to 0.9.3
1920

2021
## [0.11.0] - 2024-12-22
2122

rp2040-hal/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ itertools = {version = "0.10.1", default-features = false}
3434
nb = "1.0"
3535
paste = "1.0"
3636
pio = "0.3.0"
37-
rand_core = "0.6.3"
37+
rand_core = "0.9.3"
3838
rp-binary-info = { version = "0.1.2", path = "../rp-binary-info" }
3939
rp-hal-common = {version="0.1.0", path="../rp-hal-common"}
4040
rp2040-hal-macros = {version = "0.1.0", path = "../rp2040-hal-macros"}
@@ -51,7 +51,7 @@ rtic-monotonic = {version = "1.0.0", optional = true}
5151

5252
[dev-dependencies]
5353
# Non-optional dependencies. Keep these sorted by name.
54-
rand = {version = "0.8.5", default-features = false}
54+
rand = {version = "0.9.1", default-features = false}
5555

5656
# Optional dependencies. Keep these sorted by name.
5757
# None

rp2040-hal/src/rosc.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,4 @@ impl rand_core::RngCore for RingOscillator<Enabled> {
140140
}
141141
}
142142
}
143-
144-
fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), rand_core::Error> {
145-
self.fill_bytes(dest);
146-
Ok(())
147-
}
148143
}

rp235x-hal/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ The Minimum-Supported Rust Version (MSRV) for the next release is 1.81
1616
### Changed
1717

1818
- Update to pio 0.3.0
19+
- Update rand\_core to 0.9.3
1920

2021
## [0.3.0] - 2025-03-02
2122

rp235x-hal/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ itertools = {version = "0.13.0", default-features = false}
3434
nb = "1.0"
3535
paste = "1.0"
3636
pio = "0.3.0"
37-
rand_core = "0.6.3"
37+
rand_core = "0.9.3"
3838
rp-binary-info = {version = "0.1.2", path = "../rp-binary-info"}
3939
rp-hal-common = {version = "0.1.0", path = "../rp-hal-common"}
4040
rp235x-hal-macros = {version = "0.1.0", path = "../rp235x-hal-macros"}
@@ -59,7 +59,7 @@ riscv-rt = "0.12"
5959

6060
[dev-dependencies]
6161
# Non-optional dependencies. Keep these sorted by name.
62-
rand = {version = "0.8.5", default-features = false}
62+
rand = {version = "0.9.1", default-features = false}
6363

6464
# Optional dependencies. Keep these sorted by name.
6565
# None

rp235x-hal/src/rosc.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,4 @@ impl rand_core::RngCore for RingOscillator<Enabled> {
144144
}
145145
}
146146
}
147-
148-
fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), rand_core::Error> {
149-
self.fill_bytes(dest);
150-
Ok(())
151-
}
152147
}

0 commit comments

Comments
 (0)