Move random utils to another trait.

This commit is contained in:
Bob McWhirter
2021-08-30 09:55:29 -04:00
parent 78f7d1b786
commit 7fa3b27cac
3 changed files with 8 additions and 4 deletions

View File

@ -13,7 +13,7 @@ use embassy_stm32::Peripherals;
use embedded_hal::digital::v2::OutputPin;
use example_common::*;
use embassy_stm32::rng::Random;
use embassy::traits::rng::Rng;
use embassy::traits::rng::Random as _;
#[embassy::main]
async fn main(_spawner: Spawner, p: Peripherals) {