Replace rand with rand_core where possible

Turns out rand_core offers OsRng.
This commit is contained in:
Luke Parker
2022-07-27 05:43:23 -04:00
parent 023afaf7ce
commit 755dc84859
14 changed files with 23 additions and 25 deletions

View File

@@ -213,7 +213,7 @@ impl Coin for Monero {
#[cfg(test)]
async fn test_send(&self, address: Self::Address) {
use rand::rngs::OsRng;
use rand_core::OsRng;
let height = self.get_height().await.unwrap();

View File

@@ -6,7 +6,7 @@ use std::{
use async_trait::async_trait;
use rand::rngs::OsRng;
use rand_core::OsRng;
use crate::{
NetworkError, Network,