Permalink
Browse files

fix VRF benchs

  • Loading branch information...
vincenthz committed Feb 10, 2019
1 parent eaf9154 commit 419c57c8d8fb1c95c38404a44bb9f394c1ef8693
Showing with 10 additions and 1 deletion.
  1. +3 −0 ouroboros-praos/Cargo.toml
  2. +6 −0 ouroboros-praos/src/lib.rs
  3. +1 −1 ouroboros-praos/src/vrf.rs
@@ -12,3 +12,6 @@ sha2 = "^0.7"
digest = "^0.7"
generic-array = "^0.9"
rand = "0.6"

[features]
with-bench = []
@@ -1,2 +1,8 @@
#![cfg_attr(feature = "with-bench", feature(test))]

#[cfg(test)]
#[cfg(feature = "with-bench")]
extern crate test;

pub mod dleq;
pub mod vrf;
@@ -269,7 +269,7 @@ mod tests {
mod bench {
use super::{PublicKey, SecretKey};
use rand::OsRng;
use test;
use test::Bencher;

fn common() -> (OsRng, SecretKey, PublicKey, [u8; 10], [u8; 10]) {
let mut csprng: OsRng = OsRng::new().unwrap();

0 comments on commit 419c57c

Please sign in to comment.