Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ tracing = "0.1.41"
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
clap = { version = "4.5.54", features = ["derive"] }
num-traits = "0.2.19"
rand = "0.9"
rand = "0.10"
thiserror = "1.0.65"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion composer/src/composer/prover/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use nyks_rpc_client::http::HttpClient;
use nyks_wallet_core::transaction::builder::TransactionBuilder;
use nyks_wallet_core::transaction::builder::input::TxInputList;
use nyks_wallet_core::transaction::builder::output::TxOutput;
use rand::Rng;
use rand::RngExt;
use rand::SeedableRng;
use rand::rngs::StdRng;
use thiserror::Error;
Expand Down
6 changes: 3 additions & 3 deletions consensus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ repository = "https://github.com/Nyksnet/nyksnode/"

[dependencies]
itertools = "0.14"
tasm-lib = "8.0.0"
get-size2 = { version = "0.7", features = ["derive"] }
tasm-lib = "9.0.0"
get-size2 = { version = "0.9", features = ["derive"] }
anyhow = { version = "1.0", features = ["backtrace"] }
serde = { version = "1.0", features = ["derive"] }
rand = "0.9"
rand = "0.10"
num-rational = "0.4"
num-traits = "0.2"
tracing = "0.1"
Expand Down
1 change: 1 addition & 0 deletions consensus/src/block/block_appendix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use std::ops::Deref;

use get_size2::GetSize;
use itertools::Itertools;
use rand::RngExt;
use serde::Deserialize;
use serde::Serialize;
use tasm_lib::prelude::Digest;
Expand Down
1 change: 1 addition & 0 deletions consensus/src/block/block_height.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use num_traits::ConstZero;
use num_traits::One;
use num_traits::Zero;
use rand::Rng;
use rand::RngExt;
use rand::distr::Distribution;
use rand::distr::StandardUniform;
use serde::Deserialize;
Expand Down
1 change: 1 addition & 0 deletions consensus/src/block/difficulty_control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use num_traits::FromPrimitive;
use num_traits::ToPrimitive;
use num_traits::Zero;
use rand::Rng;
use rand::RngExt;
use rand::distr::Distribution;
use rand::distr::StandardUniform;
use serde::Deserialize;
Expand Down
2 changes: 1 addition & 1 deletion consensus/src/block/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use get_size2::GetSize;
use itertools::Itertools;
use mutator_set_update::MutatorSetUpdate;
use num_traits::Zero;
use rand::Rng;
use rand::RngExt;
use rand::SeedableRng;
use rand::rngs::StdRng;
use serde::Deserialize;
Expand Down
1 change: 1 addition & 0 deletions consensus/src/block/pow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use std::num::NonZeroUsize;
use get_size2::GetSize;
use itertools::Itertools;
use rand::Rng;
use rand::RngExt;
use rand::distr::Distribution;
use rand::distr::StandardUniform;
use rayon::iter::IndexedParallelIterator;
Expand Down
2 changes: 1 addition & 1 deletion consensus/src/transaction/lock_script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::collections::HashMap;

use get_size2::GetSize;
use itertools::Itertools;
use rand::Rng;
use rand::RngExt;
use serde::Deserialize;
use serde::Serialize;
use tasm_lib::triton_vm;
Expand Down
2 changes: 1 addition & 1 deletion consensus/src/transaction/salted_utxos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::fmt::Display;

use get_size2::GetSize;
use itertools::Itertools;
use rand::Rng;
use rand::RngExt;
use rand::rngs::StdRng;
use serde::Deserialize;
use serde::Serialize;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use field_count::FieldCount;
use get_size2::GetSize;
use itertools::Itertools;
use rand::Rng;
use rand::RngCore;
use rand::RngExt;
use rand::SeedableRng;
use rand::rngs::StdRng;
use serde::Deserialize;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl BasicSnippet for GenerateSingleProofClaim {
mod tests {
use std::collections::HashMap;

use rand::Rng;
use rand::RngExt;
use rand::prelude::StdRng;
use tasm_lib::memory::encode_to_memory;
use tasm_lib::rust_shadowing_helper_functions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ impl BasicSnippet for NewClaim {
mod tests {
use std::collections::HashMap;

use rand::Rng;
use rand::RngExt;
use rand::SeedableRng;
use rand::rngs::StdRng;
use tasm_lib::prelude::BasicSnippet;
Expand Down
2 changes: 1 addition & 1 deletion database/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ bincode = "1.3"
futures = "0.3"
itertools = "0.14"
leveldb-sys = "2.0.9"
rand = "0.9"
rand = "0.10"
rs-leveldb = "0.1.5"
serde = { version = "1.0", features = ["derive"] }
tokio = { version = "1.47", features = ["rt", "sync", "macros"] }
Expand Down
2 changes: 1 addition & 1 deletion database/src/storage/storage_schema/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ mod tests {
use itertools::Itertools;
use rand::random;
use rand::Rng;
use rand::RngCore;
use rand::RngExt;
use serde::Deserialize;
use serde::Serialize;
use twenty_first::math::other::random_elements;
Expand Down
2 changes: 1 addition & 1 deletion database/src/storage/storage_vec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ mod tests {

use itertools::Itertools;
use rand::Rng;
use rand::RngCore;
use rand::RngExt;

use super::traits::*;
use super::*;
Expand Down
2 changes: 1 addition & 1 deletion miner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
clap = { version = "4.5.54", features = ["derive"] }
num-traits = "0.2.19"
rayon = "1.10"
rand = "0.9"
rand = "0.10"

[dev-dependencies]

Expand Down
2 changes: 1 addition & 1 deletion miner/src/miner/guesser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use nyks_consensus::tasm_lib::twenty_first::bfe_array;
use nyks_rpc_client::RpcApi;
use nyks_rpc_client::http::HttpClient;
use nyks_rpc_client::mining::template::RpcBlockTemplate;
use rand::Rng;
use rand::RngExt;
use rayon::iter::IntoParallelIterator;
use rayon::iter::ParallelIterator;
use tokio::sync::RwLock;
Expand Down
8 changes: 4 additions & 4 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,20 @@ const_format = "0.2.35"
console-subscriber = { version = "0.5", optional = true }
directories = "5.0"
futures = "0.3"
get-size2 = { version = "0.7", features = ["derive"] }
get-size2 = { version = "0.9", features = ["derive"] }
itertools = "0.14"
memmap2 = "0.9"
num-rational = "0.4"
num-traits = "0.2"
priority-queue = "1.4"
proptest = { version = "1.7", optional = true }
proptest-arbitrary-interop = { version = "0.1", optional = true }
rand = "0.9"
rand = "0.10"
regex = "1.11.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
strum = { version = "0.27.0", features = ["derive"] }
tasm-lib = "8.0.0"
tasm-lib = "9.0.0"
tokio = { version = "1.47", features = ["fs", "io-util", "macros", "process", "signal", "sync", "time", "tracing"] }
tokio-util = { version = "0.7", features = ["codec", "rt", "compat"] }
tracing = "0.1"
Expand Down Expand Up @@ -149,7 +149,7 @@ divan = { version = "4.3.0", package = "codspeed-divan-compat" }
macro_rules_attr = "0.1.3"
proptest = { version = "1.7" }
proptest-arbitrary-interop = { version = "0.1" }
rand_distr = "0.5"
rand_distr = "0.6"
rayon = "1.10"
statrs = "0.18.0"
test-strategy = "0.3"
Expand Down
4 changes: 2 additions & 2 deletions node/src/application/loops/peer_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ use nyks_p2p::peer::PeerStanding;
use nyks_p2p::peer::PositivePeerSanction;
use nyks_p2p::peer::SyncChallenge;
use rand::rngs::StdRng;
use rand::Rng;
use rand::RngExt;
use rand::SeedableRng;
use tasm_lib::triton_vm::prelude::Digest;
use tasm_lib::twenty_first::prelude::Mmr;
Expand Down Expand Up @@ -98,7 +98,7 @@ pub type PeerStandingNumber = i32;
///
/// also handles messages from main task over the main-to-peer-tasks broadcast
/// channel.
#[derive(Debug, Clone)]
#[derive(Debug)]
pub struct PeerLoopHandler {
to_main_tx: mpsc::Sender<PeerTaskToMain>,
global_state_lock: GlobalStateLock,
Expand Down
2 changes: 1 addition & 1 deletion node/src/application/loops/sync_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use nyks_consensus::block::block_height::BlockHeight;
use nyks_consensus::block::Block;
use nyks_p2p::peer::synchronization_bit_mask::SynchronizationBitMask;
use rand::rng;
use rand::Rng;
use rand::RngExt;
use tokio::sync::mpsc;
use tokio::sync::mpsc::Receiver;
use tokio::sync::mpsc::Sender;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::collections::HashMap;
use std::path::PathBuf;

use rand::rng;
use rand::RngCore;
use rand::Rng;
use tokio::fs;

use crate::application::loops::sync_loop::SynchronizationBitMask;
Expand Down
2 changes: 1 addition & 1 deletion node/src/application/network/actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use libp2p::PeerId;
use nyks_consensus::network::Network;
use nyks_p2p::peer::handshake_data::HandshakeData;
use rand::seq::SliceRandom;
use rand::Rng;
use rand::RngExt;
use tokio::sync::mpsc;
use tokio::task::JoinHandle;
use tokio::time::Instant;
Expand Down
3 changes: 3 additions & 0 deletions node/src/application/network/overview.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ mod arbitrary {
#[cfg(any(test, feature = "mock-rpc"))]
impl rand::distr::Distribution<NetworkOverview> for rand::distr::StandardUniform {
fn sample<R: rand::Rng + ?Sized>(&self, rng: &mut R) -> NetworkOverview {
use rand::RngExt;

const SHA256_CODE: u64 = 0x12;
let raw_hash = rng.random::<[u8; 32]>();
let multihash = libp2p::multihash::Multihash::wrap(SHA256_CODE, &raw_hash)
Expand Down Expand Up @@ -176,6 +178,7 @@ mod tests {
use proptest_arbitrary_interop::arb;
use rand::rng;
use rand::Rng;
use rand::RngExt;
use test_strategy::proptest;

use super::*;
Expand Down
4 changes: 4 additions & 0 deletions node/src/application/network/reachability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ impl ReachabilityState {
#[cfg(any(test, feature = "mock-rpc"))]
impl rand::distr::Distribution<ReachabilityState> for rand::distr::StandardUniform {
fn sample<R: rand::Rng + ?Sized>(&self, rng: &mut R) -> ReachabilityState {
use rand::RngExt;

let addr = true
.then(|| rng.random::<[u8; 4]>())
.map(std::net::Ipv4Addr::from)
Expand All @@ -231,6 +233,8 @@ impl rand::distr::Distribution<ReachabilityState> for rand::distr::StandardUnifo
#[cfg(any(test, feature = "mock-rpc"))]
impl rand::distr::Distribution<RelayStrategy> for rand::distr::StandardUniform {
fn sample<R: rand::Rng + ?Sized>(&self, rng: &mut R) -> RelayStrategy {
use rand::RngExt;

let addr = true
.then(|| rng.random::<[u8; 4]>())
.map(std::net::Ipv4Addr::from)
Expand Down
2 changes: 1 addition & 1 deletion node/src/state/networking_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::time::SystemTime;
use anyhow::Result;
use libp2p::PeerId;
use rand::rng;
use rand::Rng;
use rand::RngExt;
use tasm_lib::prelude::Digest;
use tasm_lib::twenty_first::prelude::Mmr;
use tasm_lib::twenty_first::util_types::mmr::mmr_accumulator::MmrAccumulator;
Expand Down
4 changes: 2 additions & 2 deletions p2p/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ repository = "https://github.com/Nyksnet/nyksnode/"

[dependencies]
itertools = "0.14"
tasm-lib = "8.0.0"
tasm-lib = "9.0.0"
anyhow = { version = "1.0", features = ["backtrace"] }
serde = { version = "1.0", features = ["derive"] }
rand = "0.9"
rand = "0.10"
num-traits = "0.2"
tracing = "0.1"
thiserror = "1.0.65"
Expand Down
2 changes: 1 addition & 1 deletion p2p/src/peer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use nyks_consensus::proof_abstractions::timestamp::Timestamp;
use nyks_consensus::transaction::transaction_kernel_id::TransactionKernelId;
use peer_block_notifications::PeerBlockNotification;
use rand::Rng;
use rand::RngCore;
use rand::RngExt;
use rand::SeedableRng;
use rand::rngs::StdRng;
use serde::Deserialize;
Expand Down
1 change: 1 addition & 0 deletions p2p/src/peer/synchronization_bit_mask.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use std::ops::Not;

use itertools::Itertools;
use rand::Rng;
use rand::RngExt;
use rand::SeedableRng;
use rand::rngs::StdRng;
use serde::Deserialize;
Expand Down
2 changes: 1 addition & 1 deletion rpc/client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async-trait = "0.1.83"

[dev-dependencies]
itertools = "0.14"
rand = "0.9"
rand = "0.10"
tokio = { version = "1.47", features = ["fs", "io-util", "sync", "macros", "time", "tracing"] }
num-traits = "0.2"

Expand Down
2 changes: 1 addition & 1 deletion rpc/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ serde_json = "1.0"
thiserror = "1.0.65"
nyks-consensus = { version = "0.8.0", path = "../../consensus" }
nyks-standards = { version = "0.8.0", path = "../../standards" }
tasm-lib = "8.0.0"
tasm-lib = "9.0.0"
hex = "0.4.3"
serde_tuple = "1.1.3"
serde_arrays = "0.2"
Expand Down
2 changes: 1 addition & 1 deletion wallet/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ num-traits = "0.2.19"
serde = "1.0.228"
itertools = "0.14.0"
thiserror = "1.0.65"
rand = "0.9"
rand = "0.10"
zeroize = "1.8.1"
tiny-bip39 = "1.0"

Expand Down
2 changes: 1 addition & 1 deletion wallet/core/src/entropy/secret_key_material.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use nyks_consensus::BFieldElement;
use nyks_consensus::triton_vm::prelude::XFieldElement;
use nyks_consensus::twenty_first::prelude::Polynomial;
use nyks_consensus::twenty_first::xfe;
use rand::Rng;
use rand::RngExt;
use rand::SeedableRng;
use rand::rng;
use rand::rngs::StdRng;
Expand Down
Loading