add some entropy to DNS hashtable

This commit is contained in:
z3APA3A committed 2014-12-14 00:46:03 +03:00
1 parent e37a7f48d7
commit 7fc43e3fbd
5 files changed
+53 -14

No files matched your search

+3 -1
View File
@@ -583,19 +583,21 @@ struct child {
struct hashentry {
unsigned char hash[sizeof(unsigned)*4];
unsigned long value;
unsigned value;
time_t expires;
struct hashentry *next;
};
struct hashtable {
unsigned hashsize;
unsigned rnd[4];
struct hashentry ** hashtable;
struct hashentry * hashvalues;
struct hashentry * hashempty;
};
extern struct hashtable dns_table;
extern struct hashtable dns6_table;
struct sockfuncs {
#ifdef _WIN32