We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7f21a7 commit a7b1c14Copy full SHA for a7b1c14
src/rng.rs
@@ -4,7 +4,7 @@ use core::cmp;
4
5
use crate::rcc::{Clocks, AHB2};
6
use crate::stm32::RNG;
7
-use rand_core::{impls, RngCore};
+pub use rand_core::RngCore;
8
9
/// Extension trait to activate the RNG
10
pub trait RngExt {
@@ -98,11 +98,11 @@ impl RngCore for Rng {
98
}
99
100
fn next_u64(&mut self) -> u64 {
101
- impls::next_u64_via_u32(self)
+ rand_core::impls::next_u64_via_u32(self)
102
103
104
fn fill_bytes(&mut self, dest: &mut [u8]) {
105
- impls::fill_bytes_via_next(self, dest)
+ rand_core::impls::fill_bytes_via_next(self, dest)
106
107
108
fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), rand_core::Error> {
0 commit comments