Skip to content
Snippets Groups Projects
  1. Jul 01, 2013
  2. Jun 30, 2013
  3. Jun 25, 2013
  4. Jun 24, 2013
  5. Jun 29, 2013
  6. Jun 24, 2013
  7. Jun 23, 2013
  8. Jun 24, 2013
  9. Jun 23, 2013
  10. Jun 28, 2013
  11. Jun 26, 2013
  12. Jun 20, 2013
    • Siddharth Agarwal's avatar
      test-pathencode: randomize length of each path component · ec17ddecdf64
      Siddharth Agarwal authored
      This makes it possible for long and short components to exist in the same path.
      This also makes shorter path components more likely. For
      randint(1, randint(1, n)), the likelihood that one sees a number k
      (1 <= k <= n) is 1/n * (\sum_{k=i}^n 1/i). This decreases with k, much like in
      the real world where shorter paths are more common than longer ones.
      
      The previous fix and this one together cause issue3958 to be detected by this
      test with reasonable frequency. When this test was run 100 times in a loop, the
      issue was detected 30 of those times.
      ec17ddecdf64
Loading