| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | tor-netdir: Use reproducible RNG in tests. | Nick Mathewson | 2021-12-06 | 1 | -5/+2 |
| | | | | | | | The rand crate's documentation says it's not okay to rely on StdRng having reproducible output. So instead, let's switch to ChaCha12Rng instead (which is what StrRng currently uses). | ||||
| * | More typo fixes that I forgot to save :( | Nick Mathewson | 2021-11-24 | 1 | -1/+1 |
| | | |||||
| * | Replace weighted-choice code with rand::seq::SliceRandom. | Nick Mathewson | 2021-09-08 | 1 | -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.) | |||||
