Exemple #1
0
int main (int argc, char * argv[])
{
  driver1(jenkins_hash);   /* test that the key is hashed: used for timings */
  driver2(jenkins_hash);   /* test that whole key is hashed thoroughly */
  driver3(jenkins_hash);   /* test that nothing but the key is hashed */
  driver4(jenkins_hash);   /* test hashing multiple buffers (all buffers are null) */

  driver1((hash_func)jenkins_hash2);   /* test that the key is hashed: used for timings */
  driver2((hash_func)jenkins_hash2);   /* test that whole key is hashed thoroughly */
  driver4((hash_func)jenkins_hash2);   /* test hashing multiple buffers (all buffers are null) */

  exit (0);
}
Exemple #2
0
int main() {
  driver1(); /* test that the key is hashed: used for timings */
  driver2(); /* test that whole key is hashed thoroughly */
  driver3(); /* test that nothing but the key is hashed */
  driver4(); /* test hashing multiple buffers (all buffers are null) */
  return 0;
}