Skip to content
Snippets Groups Projects
  1. Mar 15, 2022
  2. Mar 14, 2022
  3. Mar 10, 2022
    • Vladimír Čunát's avatar
      lib/selection: improve randomness of ties · b9c2580e
      Vladimír Čunát authored
      The approach was dubious: random shuffle, qsort() and choose the first.
      The main functional problem was that qsort() isn't a stable sort,
      so the effect of pre-shuffling is not reliable, even though I don't have
      any evidence of this causing issues in practice.
      
      The new code should also be a bit more efficient in terms of CPU and
      consumed randomness, but that probably won't be noticeable.
      The arrays passed into select_transport() are now const (no sorting),
      which could make the code easier to "understand".
      Verified
      b9c2580e
  4. Mar 09, 2022
  5. Mar 08, 2022
  6. Mar 07, 2022
  7. Mar 04, 2022
  8. Mar 01, 2022
  9. Feb 28, 2022
  10. Feb 22, 2022