mirror of
https://github.com/stakwork/sphinx-key.git
synced 2026-02-23 16:44:21 +01:00
use rand from sphinx_auther
This commit is contained in:
1
sphinx-key/Cargo.lock
generated
1
sphinx-key/Cargo.lock
generated
@@ -2013,7 +2013,6 @@ dependencies = [
|
||||
"hex",
|
||||
"log",
|
||||
"lss-connector",
|
||||
"rand",
|
||||
"rmp-serde",
|
||||
"serde",
|
||||
"serde_json",
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user