Skip to content

Commit a7b1c14

Browse files
author
Johannes Draaijer
committed
Re-export RngCore
1 parent f7f21a7 commit a7b1c14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rng.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use core::cmp;
44

55
use crate::rcc::{Clocks, AHB2};
66
use crate::stm32::RNG;
7-
use rand_core::{impls, RngCore};
7+
pub use rand_core::RngCore;
88

99
/// Extension trait to activate the RNG
1010
pub trait RngExt {
@@ -98,11 +98,11 @@ impl RngCore for Rng {
9898
}
9999

100100
fn next_u64(&mut self) -> u64 {
101-
impls::next_u64_via_u32(self)
101+
rand_core::impls::next_u64_via_u32(self)
102102
}
103103

104104
fn fill_bytes(&mut self, dest: &mut [u8]) {
105-
impls::fill_bytes_via_next(self, dest)
105+
rand_core::impls::fill_bytes_via_next(self, dest)
106106
}
107107

108108
fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), rand_core::Error> {

0 commit comments

Comments
 (0)