Improved comment on hash algorithm.
This commit is contained in:
parent
b28869898a
commit
ecceec27f2
@ -109,7 +109,8 @@ typedef struct {
|
||||
} HASH_TABLE;
|
||||
|
||||
/* Basic character hash algorithm, taken from Python's string hash:
|
||||
h = h * 1000003(prime number) ^ character.
|
||||
h = h * 1000003 ^ character, the constant being a prime number.
|
||||
|
||||
*/
|
||||
#ifdef XML_UNICODE
|
||||
#define CHAR_HASH(h, c) \
|
||||
|
Loading…
Reference in New Issue
Block a user