summaryrefslogtreecommitdiff
path: root/crates/tor-netdir/src/testing.rs
Commit message (Collapse)AuthorAgeFilesLines
* More typo fixes that I forgot to save :(Nick Mathewson2021-11-241-1/+1
|
* Replace weighted-choice code with rand::seq::SliceRandom.Nick Mathewson2021-09-081-0/+59
Doing this makes the code faster, lets us throw away some code, and makes it easier to add a "choose-N-disjoint relays" implementation. See large comment about plusses and minuses of new code. (Note that the old implementation wasn't constant-time either.)