Skip to content

Commit

Permalink
fix(CI): Fix cargo deny (#1106)
Browse files Browse the repository at this point in the history
* chore(dependencies): Update jsonrpsee and related dependencies

* replace todos

* update dependencies

* dprint

* feature

* update baselines and license

* Switch from ethers to alloy

* merge

* Fix mock provider and a bug in the ws impl

* update arrow/parquet

* fix tokio dependency msim compatability

* install crypto provider and other misc

* update pcg crate usage and use vendored openssl

* test fixes

* more fixes and clippy

* baselines and more clippy

* disable mysticeti simtests too

* fix test and fmt

* roll back gcp-bigquery-client version

* fix bug in mock provider and cleanup

* remove outdated doc comment

* replace B256 with TxHash

* simplify

* comment

* remove merge problem

* fix  graphql-rpc job

* Add prost to git allow

* clippy

* update dependencies

* revert commented line

* fix borked merge

* move rustfmt skip

* Reviews

* Add comment explaining TlsAcceptor

* remove axum macros feature usage

* review and update dependencies

* remove yaml_rust RUSTSEC ignore

* reviews

* cleanup helper functions

* move import

---------

Co-authored-by: Thibault Martinez <[email protected]>
  • Loading branch information
DaughterOfMars and thibault-martinez authored Jul 26, 2024
1 parent 468ef8a commit 466998a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use iota_types::stardust::error::StardustError;
use move_compiler::parser::keywords;
use rand::distributions::{Alphanumeric, DistString};
use rand_pcg::Pcg64;
use rand_seeder::Seeder;
use rand_seeder::{rand_core::RngCore, Seeder, SipRng};
use regex::Regex;
use serde::{Deserialize, Serialize};

Expand Down Expand Up @@ -231,9 +231,13 @@ fn derive_foundry_package_lowercase_identifier(input: &str, seed: &[u8]) -> Stri
let additional_part = if is_valid {
refined_identifier
} else {
let mut rng: SipRng = Seeder::from(seed).make_rng();
fn next_u128(rng: &mut SipRng) -> u128 {
(rng.next_u64() as u128) << 64 | rng.next_u64() as u128
}
// Generate a new valid random identifier if the identifier is empty.
Alphanumeric
.sample_string(&mut Pcg64::from(Seeder::from(seed).make_rng()), 7)
.sample_string(&mut Pcg64::new(next_u128(&mut rng), next_u128(&mut rng)), 7)
.to_lowercase()
};
final_identifier.push_str(&additional_part);
Expand Down

0 comments on commit 466998a

Please sign in to comment.