Xorshift Generators
tobr
40 points
25 comments
August 15, 2026
Related Discussions
Found 5 related stories in 41.9ms across 4,128 title embeddings via pgvector HNSW
- Code Obfuscation via Local Mixing fbrusch · 30 pts · August 21, 2026 · 42% similar
- Logic for Programmers _doctor_love · 56 pts · July 30, 2026 · 40% similar
- Voxatron lsferreira42 · 82 pts · July 15, 2026 · 39% similar
- Show HN: Algotrek – Algorithms visualized, problem shape shifting and a tutor nyggy · 12 pts · July 16, 2026 · 39% similar
- Linear algebra done right the-mitr · 261 pts · August 17, 2026 · 39% similar
Discussion Highlights (4 comments)
delduca
I’ve replaced Lua’s random by this. I’ve posted about it here https://nullonerror.org/2025/08/02/replacing-lua-s-math-rand...
saithound
Ah yes, Xorshift, the RANDU [1] of the 21st century [2]. There is no real use case for better non-CS generators, as explained by adrian_b back in 2021 [3]. [1] https://en.wikipedia.org/wiki/RANDU [2] https://arxiv.org/abs/1908.10020 [3] https://news.ycombinator.com/item?id=28886698
AlanZucconi
I'm really curious... How did you manage to post this link before I did?
smusamashah
> No multiplications. No divisions. No lookup tables. Just a few bitwise instructions. Would have appreciated this article more if it was written by a human.