Skip to content

Commit 30a959a

Browse files
committed
eh-1.0.0: rng
1 parent f5a0f59 commit 30a959a

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
* serial: Implement embedded-io `Read` and `Write` traits
1414
* serial: Rename methods `read` -> `read_byte`; `write` -> `write_byte`
1515

16+
* rng: Use the `fill` method instead of the old `read` method
17+
1618
## [v0.15.1] 2023-11-03
1719

1820
* Bugfix, usb: On RM0455 and RM0468 parts, PA11/PA12 do not have an alternate function

src/rng.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use core::cmp;
88
use core::mem;
99

10-
use crate::hal::blocking::rng;
1110
use crate::rcc::{rec, rec::RngClkSel};
1211
use crate::rcc::{CoreClocks, ResetEnable};
1312
use crate::stm32::RNG;
@@ -116,14 +115,6 @@ impl core::iter::Iterator for Rng {
116115
}
117116
}
118117

119-
impl rng::Read for Rng {
120-
type Error = ErrorKind;
121-
122-
fn read(&mut self, buffer: &mut [u8]) -> Result<(), Self::Error> {
123-
self.fill(buffer)
124-
}
125-
}
126-
127118
macro_rules! rng_core {
128119
($($type:ty),+) => {
129120
$(

0 commit comments

Comments
 (0)