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?

Deflock hits 100k ALPRs Mapped in USA

https://deflock.org/
3•pilingual•4m ago•0 comments

Why AI safety researchers should consider a contract research manager position

https://www.lesswrong.com/posts/MjFArZa85KydKdivh/why-ai-safety-researchers-should-consider-a-con...
2•joozio•4m ago•0 comments

OpenJarvis: Personal AI, on Personal Devices

https://github.com/open-jarvis/OpenJarvis
2•simonpure•5m ago•0 comments

Meta launches Instagram, Facebook, and WhatsApp subscriptions

https://techcrunch.com/2026/05/27/meta-officially-launches-instagram-facebook-and-whatsapp-subscr...
1•tambourine_man•6m ago•0 comments

Cancer Progress: More Than You Wanted to Know (2018)

https://slatestarcodex.com/2018/08/01/cancer-progress-much-more-than-you-wanted-to-know/
1•downbad_•7m ago•0 comments

Polyhedral Compilation in MLIR

https://sajidzubair.substack.com/p/polyhedral-compilation-in-mlir
1•matt_d•8m ago•0 comments

Viking Lander Biological Experiments

https://en.wikipedia.org/wiki/Viking_lander_biological_experiments
1•root-parent•11m ago•0 comments

Fibbo: A modern, fast and universal note-taking app running on every device

https://codeberg.org/Nifou/fibbo
1•maxloh•12m ago•0 comments

Turning AI chatbot pages into malware delivery platforms

https://pushsecurity.com/blog/llmshare-malvertising-campaign
1•redbell•14m ago•0 comments

United flight forced to turn around because of a Bluetooth speaker name

https://www.theverge.com/transportation/940486/united-flight-236-bluetooth-speaker-name-bomb
1•droidjj•15m ago•1 comments

NudgeQuote (stops contractors from leaving money in unanswered estimates)

https://nudgequote.com/
1•erichensley•15m ago•0 comments

PewDiePie's AI Workspace

https://pewdiepie-archdaemon.github.io/odysseus/
2•r0xsh•16m ago•0 comments

Show HN: Deliberate – log what your agent rejected, not just what it ran

https://www.deliberate.dev/
2•garysmith1234•17m ago•0 comments

Genetics of Transparent Worms, Supertasters and Cancer

https://www.quantamagazine.org/cori-bargmann-on-the-genetics-of-transparent-worms-supertasters-an...
1•bookofjoe•19m ago•0 comments

I found a seashell in the middle of the desert

https://github.com/Hawzen/I-found-a-seashell-in-the-middle-of-the-desert
2•SVI•20m ago•0 comments

A dynamic programming algorithm for the traveling salesman problem (1993)

https://dl.acm.org/doi/abs/10.1145/173834.173835
1•tosh•21m ago•0 comments

Arctic food chain hit as tipping point passed

https://www.ed.ac.uk/news/arctic-food-chain-hit-as-tipping-point-passed
1•littlexsparkee•21m ago•0 comments

Remote-cmd – Python CLI for SSH server management without the Ansible overhead

https://github.com/Vae-Scrooge/remote-cmd
1•Vae-Scrooge•25m ago•0 comments

$100 to a Debian Developer who can get Fresh Editor into Trixie

5•jph•28m ago•0 comments

Encrypted Client Hello Doesn't Help With Privacy

https://blog.miloslavhomer.cz/encrypted-client-hello/
2•ArcHound•28m ago•1 comments

Commands Aren't Just Events in Reverse

https://docs.eventsourcingdb.io/blog/2026/06/01/commands-arent-just-events-in-reverse/
1•goloroden•29m ago•0 comments

Yes, but who said they'd BUY the damn thing? (2010)

https://longform.asmartbear.com/customer-validation/
1•mooreds•30m ago•0 comments

Talk Is Cheap: The Operational Impact of LLM Use

https://unessays.substack.com/p/talk-is-cheap
7•oudlys•30m ago•1 comments

The Speed of Prototyping in the Age of AI

https://darylcecile.net/notes/speed-of-prototyping-age-of-ai
10•mooreds•30m ago•0 comments

Five giant hyperscalers–and Nvidia–share a surprising trait: female CFOs

https://fortune.com/2026/05/27/ai-cfos-women-hyperscalers-nvidia-meta-microsoft-openai-ipo/
1•mooreds•31m ago•0 comments

CT gov signs AI law to notify employees

https://news.bloomberglaw.com/daily-labor-report/connecticuts-lamont-signs-ai-law-with-employer-n...
2•moneil971•31m ago•0 comments

The household battery revolution that could change energy bills and the world

https://www.theguardian.com/environment/ng-interactive/2026/may/31/cheaper-energy-bills-battery-r...
2•tosh•32m ago•0 comments

Ask HN: How much is fully agentic coding costing you per month?

1•ronbenton•33m ago•0 comments

Shortcuts.app as UI to Rsync

https://ivan.sh/shortcuts-rsync/
1•ivan888•34m ago•0 comments

Gen Z but Two Centuries Ago

https://aeon.co/essays/young-people-now-and-the-mal-du-siecle-of-19th-century-france
2•karakoram•35m ago•0 comments