use rand from sphinx_auther

This commit is contained in:
Evan Feenstra
2023-06-06 09:52:43 -07:00
parent 52d21d2cc9
commit 7947853cfd
3 changed files with 1 additions and 5 deletions

1
sphinx-key/Cargo.lock generated
View File

@@ -2013,7 +2013,6 @@ dependencies = [
"hex",
"log",
"lss-connector",
"rand",
"rmp-serde",
"serde",
"serde_json",

View File

@@ -37,7 +37,6 @@ serde = { version = "1.0.137", default-features = false }
serde_json = { version = "1.0.81", default-features = false }
hex = "0.4.3"
rmp-serde = "1.1.0"
rand = "0.8.5"
[build-dependencies]
embuild = "0.29"

View File

@@ -24,9 +24,6 @@ use esp_idf_svc::nvs::*;
use sphinx_signer::lightning_signer::bitcoin::Network;
use sphinx_signer::sphinx_glyph::control::{Config, ControlPersist, Policy};
use rand::distributions::Alphanumeric;
use rand::Rng;
#[cfg(not(feature = "pingpong"))]
const CLIENT_ID: &str = "sphinx-1";
@@ -180,6 +177,7 @@ fn make_and_launch_client(
}
pub fn random_word(n: usize) -> String {
use sphinx_crypter::secp256k1::rand::{self, distributions::Alphanumeric, Rng};
rand::thread_rng()
.sample_iter(&Alphanumeric)
.take(n)