mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-05 20:30:57 +00:00
Fix bad import and feature specification in benchmarks.
This commit is contained in:
parent
d31df0aaa8
commit
dc4b77b551
2 changed files with 5 additions and 1 deletions
|
|
@ -52,11 +52,15 @@ version = "0.2"
|
|||
hex = "^0.3"
|
||||
bincode = "^0.9"
|
||||
criterion = "0.2"
|
||||
rand = "0.6"
|
||||
rand_os = "0.1"
|
||||
|
||||
[[bench]]
|
||||
name = "ed25519_benchmarks"
|
||||
harness = false
|
||||
# This doesn't seem to work with criterion, cf. https://github.com/bheisler/criterion.rs/issues/344
|
||||
# For now, we have to bench by doing `cargo bench --features="batch"`.
|
||||
# required-features = ["batch"]
|
||||
|
||||
[features]
|
||||
default = ["std", "u64_backend"]
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ mod ed25519_benches {
|
|||
use ed25519_dalek::Signature;
|
||||
use ed25519_dalek::verify_batch;
|
||||
use rand::thread_rng;
|
||||
use rand::rngs::ThreadRng;
|
||||
use rand::prelude::ThreadRng;
|
||||
|
||||
fn sign(c: &mut Criterion) {
|
||||
let mut csprng: ThreadRng = thread_rng();
|
||||
|
|
|
|||
Loading…
Reference in a new issue