Magnetic tunnel junction as a real-time entropy source: Field-Programmable Gate Array based random bit generation without post-processing
Troy Criss, Ahmed Sidi El Valli, Naomi Li, Andrew Haas, Andrew D. Kent
TL;DR
The paper addresses the need for fast, truly random bits without post-processing. It develops a real-time feedback loop that stabilizes MTJ switching probability and an on-board FPGA XOR to suppress short-term correlations, delivering NIST-compliant randomness at 5 Mb/s. Experimental results show that only the combination of feedback and XOR yields a stream that passes the NIST tests across durations, with significantly reduced drift and correlations. This work provides a practical hardware TRNG based on magnetic tunnel junctions, with immediate applications in cryptography, stochastic computing, and large-scale simulations, and outlines routes to higher throughput and FPGA-implemented randomness checks.
Abstract
We demonstrate a method to generate application-ready truly random bits from a magnetic tunnel junction driven by a Field-Programmable Gate Array (FPGA). We implement a real-time feedback loop that stabilizes the switching probability near 50\% and apply an XOR operation, both on the FPGA, to suppress short-term correlations, together mitigating long-term drift and bias in the bitstream. This combined approach enables NIST-compliant random bit generation at 5~Mb/s without post-processing, providing a practical hardware solution for fast and reliable true random number generation. Beyond cryptographic applications, these capabilities open opportunities for stochastic hardware accelerators, probabilistic computing, and large-scale modeling where real-time access to unbiased randomness is essential.
