Skip to content

Commit

Permalink
fix: use correct rand package for thread_rng (#1233)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtraglia authored Mar 28, 2024
1 parent fa84c30 commit c3107ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/precompile/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ secp256k1 = { version = "0.28.2", default-features = false, features = [

[dev-dependencies]
criterion = { version = "0.5" }
rand = { version = "0.8", features = ["std"] }

[features]
default = ["std", "c-kzg", "secp256k1", "portable"]
Expand Down
2 changes: 1 addition & 1 deletion crates/precompile/benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use revm_precompile::{
Bytes,
};
use revm_primitives::{hex, keccak256, Env, U256, VERSIONED_HASH_VERSION_KZG};
use secp256k1::{rand, Message, SecretKey, SECP256K1};
use secp256k1::{Message, SecretKey, SECP256K1};
use sha2::{Digest, Sha256};

/// Benchmarks different cryptography-related precompiles.
Expand Down

0 comments on commit c3107ec

Please sign in to comment.