‹ BackHN Continuity

Thread

AMD's random number generator can't generate a 0?

288 points · 220 comments · BruceEel

  1. kevinwang · · focus · HN ↗
    I wonder if this, or something like it, is the issue:

    > 32-bit XorShift should usually not be used to produce 32-bit numbers, because it only produces each number once, and never produces zero.

    (From this page I found while trying to see if this was a common flaw in PRNGs: <a href="https:&#x2F;&#x2F;www.pcg-random.org&#x2F;other-rngs.html" rel="nofollow">https:&#x2F;&#x2F;www.pcg-random.org&#x2F;other-rngs.html )

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.