You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by GitBox <gi...@apache.org> on 2021/11/22 00:36:18 UTC

[GitHub] [lucenenet] NightOwl888 opened a new pull request #552: BUG: Lucene.Net.Suggest.Jaspell.JaspellTernarySearchTree: Fixed random number generator so it produces random numbers

NightOwl888 opened a new pull request #552:
URL: https://github.com/apache/lucenenet/pull/552


   Lazy initialize a `J2N.Randomizer()` instance so we hit both paths approximately evenly instead of one path when deleting nodes recursively. The previous implementation used a `System.Random`, but always initialized it to the same seed, so we didn't actually generate random numbers.


-- 
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: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [lucenenet] NightOwl888 merged pull request #552: BUG: Lucene.Net.Suggest.Jaspell.JaspellTernarySearchTree: Fixed random number generator so it produces random numbers

Posted by GitBox <gi...@apache.org>.
NightOwl888 merged pull request #552:
URL: https://github.com/apache/lucenenet/pull/552


   


-- 
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: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org