HeadlinesBriefing favicon HeadlinesBriefing.com

AMD RNG Bug: Zero Never Generated on Ryzen CPUs

Hacker News •
×

An assembly language programmer and electronics engineer reports that AMD's random number generator fails to produce a zero value. After testing two AMD processors for over nine days, not a single zero was generated. The issue has been escalated internally at AMD, but no further feedback has been received.

The author updated their testing application to benchmark RNG performance across different CPUs. Results show significant variation: a 2012 Core i5 generates 12.6 million numbers per second, a 2017 Core i7 7700 produces 750 thousand per second, and an AMD Ryzen 7 achieves 2.6 million per second. The AMD generator appears unaffected by clock speed changes, while the older Core i5 is fully clock-dependent.

These disparities suggest major architectural differences in RNG implementations, even within the same manufacturer's product lines. The author notes a lack of public documentation on how these hardware RNG units function internally.