恢复xorshift128的内部状态
本文探讨如何逆向恢复xorshift128随机数生成器的内部状态。继之前分析Mersenne Twister和lehmer64之后,作者这次聚焦于xorshift128,给出了包含四个32位种子变量(a、b、c、d)的实现示例,并讨论了状态恢复的技术方法。
本文探讨如何逆向恢复xorshift128随机数生成器的内部状态。继之前分析Mersenne Twister和lehmer64之后,作者这次聚焦于xorshift128,给出了包含四个32位种子变量(a、b、c、d)的实现示例,并讨论了状态恢复的技术方法。
The article explains how to recover the internal state of the Xorshift128 pseudorandom number generator by observing its output. It details the structure of the generator, which uses four 32-bit words (a, b, c, d) shifted every call, and shows how a small number of outputs suffice to reconstruct the full state through solving linear equations.