Unbiased Random Number Generation using Injection-Locked Spin-Torque Nano-Oscillators

Nhat-Tan Phan,Nitin Prasad,Abderrazak Hakam,Ahmed Sidi El Valli,Lorena Anghel,Luana Benetti,Advait Madhavan,Alex S. Jenkins,Ricardo Ferreira,Mark D. Stiles,Ursula Ebels,Philippe Talatchian
2023-11-21
Abstract:Unbiased sources of true randomness are critical for the successful deployment of stochastic unconventional computing schemes and encryption applications in hardware. Leveraging nanoscale thermal magnetization fluctuations provides an efficient and almost cost-free means of generating truly random bitstreams, distinguishing them from predictable pseudo-random sequences. However, existing approaches that aim to achieve randomness often suffer from bias, leading to significant deviations from equal fractions of 0 and 1 in the bitstreams and compromising their inherent unpredictability. This study presents a hardware approach that capitalizes on the intrinsic balance of phase noise in an oscillator injection locked at twice its natural frequency, leveraging the stability of this naturally balanced physical system. We demonstrate the successful generation of unbiased and truly random bitstreams through extensive experimentation. Our numerical simulations exhibit excellent agreement with the experimental results, confirming the robustness and viability of our approach.
Materials Science,Mesoscale and Nanoscale Physics
What problem does this paper attempt to address?
### What problem does this paper attempt to solve? This paper aims to solve the difficult problem of generating truly unbiased random numbers, especially in application scenarios with high - quality randomness requirements in hardware encryption and non - traditional computing schemes. Specifically: 1. **Limitations of existing methods**: - Current methods for generating random bit streams are often biased, that is, the proportion of 0s and 1s produced is unbalanced. This bias will significantly reduce the unpredictability of the random sequence, making it easy to be predicted by malicious attackers. - To correct these biases, additional circuit designs are usually required, which not only increase costs but may also affect the efficiency of the system. 2. **The proposed new method**: - The paper proposes a new method based on Spin - Torque Nano - Oscillators (STNOs). By using their inherent phase - noise characteristics, when the synchronization - locking frequency is twice the natural frequency, an unbiased and truly random bit - stream generation is achieved. - This method utilizes the inherent balance characteristics of STNOs in the synchronization - locking state to ensure that the generated random bit stream has an equal - probability distribution of 0s and 1s, thus ensuring its unbiasedness and unpredictability. 3. **Application background**: - In fields such as encryption technology and probabilistic computing, the generation of high - quality random numbers is crucial. Although pseudo - random numbers have a long period and low correlation, they are still predictable and cannot meet the requirements for complete unpredictability in some application scenarios. - Therefore, developing a technology that can generate unbiased random numbers efficiently and at low cost has important practical significance. 4. **Technical details**: - By applying a constant direct - current and a fixed external magnetic field, the STNO is made to enter the self - oscillation mode, and an alternating - current signal with a frequency twice its natural frequency is injected to make it synchronize and lock. - Random fluctuations in the magnetization of the free layer caused by thermal noise will cause the phase difference to switch randomly between 0 and π, forming a binary random sequence. - A special circuit is designed to read and process these phase information to ensure that the generated random bit stream can be accurately measured and analyzed. In summary, this paper is committed to solving the bias problem in existing random - number - generation methods, proposes a new unbiased - random - number - generation method based on STNOs, and verifies its effectiveness and reliability through experiments.