Skip to content

Commit 99ede05

Browse files
committed
update comments
1 parent 1471d2f commit 99ede05

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/hash.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ struct hash_tab {
1212
struct hash_pair *table; // Single table for double hashing
1313
};
1414

15-
// TAOCP vol. 3, section 6.4: for multiplication hashing, use A ~ 1/phi, the golden ratio.
16-
//
15+
// 1/phi and sqrt(0.1)
1716
static const double hash_multiplier1 = 0.618033988749895;
1817
static const double hash_multiplier2 = 0.316227766016838;
1918
static const double default_load_factor = .5;

0 commit comments

Comments
 (0)