From 7f20a31b739a5465934433593061eb6c64ee9997 Mon Sep 17 00:00:00 2001 From: "aappleby@google.com" Date: Mon, 21 Mar 2011 20:55:06 +0000 Subject: verification code work git-svn-id: http://smhasher.googlecode.com/svn/trunk@96 77a7d1d3-4c08-bdc2-d393-d5859734b01a --- KeysetTest.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'KeysetTest.h') diff --git a/KeysetTest.h b/KeysetTest.h index c2a5c33..936e535 100644 --- a/KeysetTest.h +++ b/KeysetTest.h @@ -248,6 +248,8 @@ bool CyclicKeyTest ( pfHash hash, int cycleLen, int cycleReps, const int keycoun { printf("Keyset 'Cyclic' - %d cycles of %d bytes - %d keys\n",cycleReps,cycleLen,keycount); + Rand r(483723); + std::vector hashes; hashes.resize(keycount); @@ -260,7 +262,7 @@ bool CyclicKeyTest ( pfHash hash, int cycleLen, int cycleReps, const int keycoun for(int i = 0; i < keycount; i++) { - rand_p(cycle,cycleLen); + r.rand_p(cycle,cycleLen); *(uint32_t*)cycle = f3mix(i ^ 0x746a94f1); -- cgit v1.2.3