~ubuntu-branches/ubuntu/raring/maradns/raring

« back to all changes in this revision

Viewing changes to deadwood-2.4.10/src/DwRandPrime.h

  • Committer: Bazaar Package Importer
  • Author(s): Kai Hendry
  • Date: 2010-01-24 12:17:40 UTC
  • mfrom: (1.1.13 upstream) (10.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100124121740-a4e1fjobwaouz443
Tags: 1.4.02-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* This file is automatically generated by RandomPrime */
 
2
 
 
3
/* Having the multiply constant hardcoded in the code makes things about
 
4
 * 8% faster; however, I want to make it a variable because then it
 
5
 * can easily be changed in one's dwood2rc file, allowing people to
 
6
 * protect themselves from "make a bunch of bogus queries that hash to
 
7
 * the same value" DOS attacks.  However, if you need that extra 8%
 
8
 * speed, uncomment the next line, but change the constant to some other
 
9
 * 32-bit prime number */
 
10
/*#define MUL_CONSTANT 2003546269 */
 
11
uint32_t magic_number = 2003546269;
 
12
/* 2003546269 has 19 bits set to 1 */