nmslib/hnswlib

`getRandomLevel` bounds issue

jamjpan opened this issue · 0 comments

double r = -log(distribution(level_generator_)) * reverse_size;

In very rare cases, the value of distribution(level_generator_) can be 0 which causes r = inf.