A RocksDB unit test added four years ago to verify the quality of random number sources eventually exposed a hardware bug in AMD CPUs. The test, which generated thousands of unique 128-bit identifiers using std::random_device across many threads, began failing intermittently. Investigation revealed that the RDSEED instruction
Table of contents
Background: Unique IdentifiersHigh Quality RandomnessTrust But VerifyThat’s WeirdRoot Cause AnalysisWith ApologiesKey TakeawaysSort: