3 ms·
Exactly. I've implemented a xorshift-based rng inverter previously, and here's the implementation for the algorithm in the article: https://github.com/m1el/sam
by m1el 1y ago
Exactly. I've implemented a xorshift-based rng inverter previously, and here's the implementation for the algorithm in the article:
https://github.com/m1el/samaras/blob/master/src/xorshift128.rs https://github.com/m1el/samaras/blob/master/src/xorshift128....
- ScottContini 1y agoThe blog is not about going from one known internal state to the previous internal state. It is about not knowing the internal state but figuring it out after having 2 (or 3) consecutive outputs of the random number generator.
- Retr0id 1y agoSeeing your comment with the precomputed matrix reminded me of this visualisation I made: https://bsky.app/profile/retr0.id/post/3kc2rz7i7fm2y https://bsky.app/profile/retr0.id/post/3kc2rz7i7fm2y