mayya-sharipova commented on a change in pull request #267: URL: https://github.com/apache/lucene/pull/267#discussion_r700571577
########## File path: lucene/core/src/java/org/apache/lucene/util/hnsw/HnswGraphBuilder.java ########## @@ -267,4 +341,12 @@ private int findNonDiverse(NeighborArray neighbors) throws IOException { } return -1; } + + private static int getRandomGraphLevel(double ml, Random random) { + float randFloat = random.nextFloat(); + while (randFloat == 0.0f) { Review comment: good comment! Addressed in 6a05951772cc72a1530f3fd863d906dc0e3bef88 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org