frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: DualMix128 – A fast, simple PRNG passing PractRand (32TB) and BigCrush

https://github.com/the-othernet/DualMix128
5•the_othernet•1y ago
Hi HN,

I'd like to share DualMix128, a pseudo-random number generator I developed. It's written in C and achieves very high speed while maintaining strong statistical properties for non-cryptographic use.

GitHub (MIT License): https://github.com/the-othernet/DualMix128

Key points:

* *Fast:* Benchmarked at ~0.36 ns per 64-bit generation on GCC 11.4 (-O3 -march=native). This was over 2x faster than `xoroshiro128++` (~0.74 ns) and competitive with `wyrand` (~0.36 ns) in the same tests. (Benchmark code/results in repo).

* *Robust:* Passes the full TestU01 BigCrush suite and PractRand up to 32TB with no anomalies reported. (Test harnesses/logs in repo).

* *Simple Algorithm:* Uses a 128-bit state (two `uint64_t`) with simple mixing based on addition, XOR, rotation, and a final multiplication by the golden ratio constant.

* *C Implementation:* Minimal dependencies (`stdint.h` for core), straightforward C code.

This came out of exploring simple constructions for efficient PRNGs that still hold up under heavy statistical testing.

Curious to hear feedback on the design, performance, potential applications, or any weaknesses you might spot. Thanks!

Comments

thomaskoopman•1y ago
Very cool, fast and looks like it should vectorize too. Do you have a jump function for parallel seeding?

How did you come up with this, some number-theoretic basis or more experimental?

Roblox Released the Biggest AI World Model in Gaming. Everyone Hates It

https://kuber.studio/blog/AI/Roblox-Released-the-Biggest-AI-World-Model-in-Gaming.-Everyone-Hates...
1•kuberwastaken•4m ago•0 comments

Multi-Robot Cooperative Spatial Reasoning with Multimodal Large Language Models

https://arxiv.org/abs/2605.18431
2•yogthos•6m ago•0 comments

Revenge of the AI Bubble

https://www.axios.com/2026/06/06/ai-bubble-economy-growth
2•1vuio0pswjnm7•8m ago•0 comments

If LLMs Have Human-Like Attributes, Then So Does Age of Empires II

https://arxiv.org/abs/2605.31514
2•gekoxyz•8m ago•0 comments

Auburn college student missing in Japan argued with mom over ChatGPT usage

https://www.cbsnews.com/news/james-weston-higginbotham-missing-japan-mom-chatgpt/
2•llboston•10m ago•0 comments

Benchmarks in Leipzig

https://arxiv.org/abs/2606.05818
4•root-parent•10m ago•1 comments

Arc Fusion Power Plant Physics Basis

https://www.cambridge.org/core/journals/journal-of-plasma-physics/collections/arc-fusion-power-pl...
2•mpweiher•10m ago•0 comments

Ask HN: Were CS profs right to look down on programming in light of modern AI?

3•amichail•12m ago•0 comments

The First SMS Message

https://spacedaily.com/d-on-december-3-1992-a-22-year-old-british-software-engineer-named-neil-pa...
3•ultratalk•14m ago•0 comments

CreatorL.ink Now Live

https://creatorl.ink
3•BiltlyAdm•16m ago•1 comments

Fooling Go's X.509 Certificate Verification

https://danielmangum.com/posts/fooling-go-x509-certificate-verification/
3•hasheddan•18m ago•0 comments

Better Prompting LLMs Through Analogies

https://thecodeartist.github.io/better-prompting-llms-using-analogies/
2•cvs268•21m ago•0 comments

Show HN: Facebook cover photo resizer that shows the mobile crop before upload

https://allimgtools.app/resize/for-facebook-cover
2•samidurbar•21m ago•0 comments

Smack – AI personas that run UX tests on any URL local

https://smck.ai/
2•adiv_maimon•25m ago•0 comments

FokosDB: Strongly consistent storage DB ontop of Cloudflare Durable Objects

https://www.lambrospetrou.com/articles/fokosdb/
2•jicea•25m ago•0 comments

I built a black-and-white e-ink display to stop checking my phone 60 times a day

https://old.reddit.com/r/webdev/comments/1tyabcg/i_built_a_blackandwhite_eink_display_so_id_stop/
3•taubek•29m ago•0 comments

US House lawmakers release draft bill to prohibit state AI rules

https://www.reuters.com/business/us-house-lawmakers-release-draft-bill-regulate-ai-2026-06-04/
4•1vuio0pswjnm7•30m ago•0 comments

Instead of Taking Your Job, A.I. Might Transform It

https://www.newyorker.com/culture/open-questions/instead-of-taking-your-job-ai-might-transform-it
2•fortran77•31m ago•1 comments

SETI Panel Revises Recommendations for Dealing with 'Disclosure Day'

https://www.universetoday.com/articles/seti-panel-revises-recommendations-for-dealing-with-disclo...
2•root-parent•32m ago•1 comments

Open Loops – a tiny tool to track what you're waiting on from people

https://mypeakplanner.com/products/open-loops-follow-up-tracker
3•seamagu•32m ago•0 comments

Lego Reseller Bricks and Minifigs Will Return 'Stolen' Star Wars Sets

https://www.ign.com/articles/lego-reseller-bricks-and-minifigs-will-return-stolen-star-wars-sets-...
3•AdmiralAsshat•33m ago•1 comments

Embodied Cognition and Agentic AI

https://lemire.me/blog/2026/05/28/embodied-cognition-and-agentic-ai/
3•tosh•35m ago•0 comments

Projections for the Ebola Disease Outbreak Caused by Ebola Virus, 2026

https://www.cdc.gov/mmwr/volumes/75/wr/mm7522e1.htm
2•bookofjoe•35m ago•0 comments

Chatbots May Need a Cult Deprogrammer

https://www.wsj.com/opinion/chatbots-may-need-a-cult-deprogrammer-48f25568
1•1vuio0pswjnm7•35m ago•0 comments

120k Lines of Rust: Inside the Nosdesk Backend

https://kyle.au/blog/nosdesk-backend-rust
1•kylephillipsau•36m ago•0 comments

CodersBud – a terminal-first social network for developers

https://codersbud.dev/
1•ugurabb•38m ago•1 comments

I Turned Reckless Driving into a Captcha [video]

https://www.youtube.com/shorts/zRQjh4aogsE
1•Cider9986•43m ago•0 comments

What TTS Throws Away

https://amaldavid.com/writing/what-tts-throws-away/
1•amaldavid•44m ago•0 comments

Win16 Memory Management

https://www.os2museum.com/wp/win16-memory-management/
1•atan2•47m ago•0 comments

Bezos Funding Hunt for Brain's 'Core Algorithm'

https://www.wired.com/story/jeff-bezos-is-funding-a-wild-hunt-for-the-brains-core-algorithm/
1•bookofjoe•48m ago•3 comments