summaryrefslogtreecommitdiff
path: root/KeysetTest.h
diff options
context:
space:
mode:
authoraappleby@google.com <aappleby@google.com@77a7d1d3-4c08-bdc2-d393-d5859734b01a>2011-03-21 20:55:06 +0000
committeraappleby@google.com <aappleby@google.com@77a7d1d3-4c08-bdc2-d393-d5859734b01a>2011-03-21 20:55:06 +0000
commit7f20a31b739a5465934433593061eb6c64ee9997 (patch)
tree800b8b11e492eca6055d6b2911cf6ba175be1a35 /KeysetTest.h
parent3ee4561b1347b8ad7a6cda7210c640d9288df957 (diff)
downloadsrc-7f20a31b739a5465934433593061eb6c64ee9997.tar.gz
verification code work
git-svn-id: http://smhasher.googlecode.com/svn/trunk@96 77a7d1d3-4c08-bdc2-d393-d5859734b01a
Diffstat (limited to 'KeysetTest.h')
-rw-r--r--KeysetTest.h4
1 files changed, 3 insertions, 1 deletions
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<hashtype> 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);