1. 23 Apr, 2011 1 commit
  2. 22 Apr, 2011 2 commits
  3. 21 Apr, 2011 7 commits
  4. 20 Apr, 2011 1 commit
  5. 13 Apr, 2011 1 commit
  6. 12 Apr, 2011 2 commits
  7. 09 Apr, 2011 5 commits
  8. 07 Apr, 2011 2 commits
  9. 21 Mar, 2011 3 commits
  10. 20 Mar, 2011 3 commits
  11. 19 Mar, 2011 1 commit
    • deuce's avatar
      Fix a distribution problem in xp_random() with limits that are not a power · 243c3838
      deuce authored
      of two.
      
      Essentially, any bits above the next lowest power of two are less likely
      to be set.  For example, xp_random(6) would use 3 bits of randomness with
      the following distribution:
      
      000 = 0
      001 = 1
      010 = 2
      011 = 3
      100 = 4
      101 = 5
      110 = 0
      111 = 1
      
      As you can see, zero and one are twice as likely to occur than 2,3,4, or 5.
      243c3838
  12. 10 Mar, 2011 2 commits
  13. 04 Mar, 2011 2 commits
  14. 02 Mar, 2011 2 commits
  15. 01 Mar, 2011 6 commits