From e91987e23f2e40faa42c5c7789540fd3bc29dfae Mon Sep 17 00:00:00 2001 From: Daniel Karzel Date: Wed, 20 Jan 2021 10:38:28 +1100 Subject: [PATCH] Fix rand import --- swap/src/protocol/bob/swap.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/swap/src/protocol/bob/swap.rs b/swap/src/protocol/bob/swap.rs index 02efb241..1eafc2b7 100644 --- a/swap/src/protocol/bob/swap.rs +++ b/swap/src/protocol/bob/swap.rs @@ -1,6 +1,6 @@ use anyhow::{bail, Result}; use async_recursion::async_recursion; -use rand::{CryptoRng, RngCore}; +use rand::{rngs::OsRng, CryptoRng, RngCore}; use std::sync::Arc; use tokio::select; use tracing::{debug, info}; @@ -13,7 +13,6 @@ use crate::{ protocol::bob::{self, event_loop::EventLoopHandle, state::*}, ExpiredTimelocks, SwapAmounts, }; -use ecdsa_fun::fun::rand_core::OsRng; pub fn is_complete(state: &BobState) -> bool { matches!(