From b36db2d74992f2ea80329378c32a6321d6a60b26 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 10 Jun 2008 19:10:34 +0000 Subject: Change PK_Signer::signature to take a RandomNumberGenerator reference instead of always using the global PRNG. --- checks/pk_bench.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'checks/pk_bench.cpp') diff --git a/checks/pk_bench.cpp b/checks/pk_bench.cpp index c34827258..e6ab90153 100644 --- a/checks/pk_bench.cpp +++ b/checks/pk_bench.cpp @@ -295,7 +295,7 @@ void bench_sig(PK_Signer* sig, const std::string& algo_name, global_state().randomize(msg, MSG_SIZE); u64bit start = get_clock(); sig->update(msg, MSG_SIZE); - sig->signature(); + sig->signature(global_state().prng_reference()); clocks_used += get_clock() - start; } @@ -313,7 +313,7 @@ void bench_ver(PK_Signer* sig, PK_Verifier* ver, global_state().randomize(msg, MSG_SIZE); sig->update(msg, MSG_SIZE); - SecureVector signature = sig->signature(); + SecureVector signature = sig->signature(global_state().prng_reference()); u32bit runs = 0; u64bit clocks_used = 0; @@ -325,7 +325,7 @@ void bench_ver(PK_Signer* sig, PK_Verifier* ver, { global_state().randomize(msg, MSG_SIZE); sig->update(msg, MSG_SIZE); - signature = sig->signature(); + signature = sig->signature(global_state().prng_reference()); } runs++; -- cgit v1.2.3