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•11mo 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•11mo 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?

Michael Pollan on Defending Our Consciousness

https://michaelpollan.com/articles-archive/defending-our-consciousness-against-the-algorithms/
1•chmaynard•2m ago•0 comments

Liven up your screenshots with errant open tabs

https://tab.wesbos.com
1•patrikcsak•2m ago•0 comments

Maine governor vetoes statewide pause in new data centers

https://thehill.com/policy/technology/5848215-maine-gov-mills-vetoes-data-center-moratorium/
1•rurp•3m ago•0 comments

Give Your Coding Agent a Journal

https://doug.sh/posts/give-your-coding-agent-a-journal/
1•dougcalobrisi•6m ago•0 comments

Elon Musk's near-daily online posts about race are turning off some fans

https://www.washingtonpost.com/technology/2026/04/24/musk-online-posts-race-whiteness/
3•ironyman•6m ago•0 comments

Supplyframe Sells Tindie

https://www.hackster.io/news/supplyframe-sells-tindie-now-in-its-second-week-of-site-outage-to-pa...
2•0xBA5ED•9m ago•1 comments

Psychology textbooks still misrepresent famous experiments controversial debates

https://www.psypost.org/psychology-textbooks-still-misrepresent-famous-experiments-and-controvers...
2•ZunarJ5•11m ago•0 comments

Bitcoin 'Q-Day' Draws Nearer as Quantum Researcher Breaks Simplified Key

https://decrypt.co/365444/bitcoin-q-day-draws-nearer-quantum-researcher-breaks-simplified-key
2•HardwareLust•11m ago•0 comments

New adventures, same company (2024)

https://www.mooreds.com/wordpress/archives/3643
3•mooreds•15m ago•0 comments

Ignoring the War Has Been Working for Long-Term Investors

https://www.nytimes.com/2026/04/24/business/iran-war-stocks-bonds-investing.html
2•mooreds•24m ago•0 comments

There is too much traffic for Alex to walk to school, so we drive (2019)

https://www.researchgate.net/publication/324388709_There_is_too_much_traffic_for_Alex_to_walk_to_...
3•aziaziazi•24m ago•0 comments

The Space Between Humans, AI, and the Work We've Been Avoiding

https://www.bettyjunod.com/blog/the-space-between-humans-ai-and-the-work-weve-been-avoiding
2•mooreds•25m ago•0 comments

Trading Is Getting Younger, Ownership Is Getting Older

https://www.apollo.com/wealth/the-daily-spark/trading-is-getting-younger-ownership-is-getting-older
2•akyuu•28m ago•0 comments

Record Labels Drop Piracy Lawsuits Against Altice and Verizon After Cox Ruling

https://torrentfreak.com/record-labels-drop-piracy-lawsuits-against-altice-and-verizon-in-wake-of...
3•Cider9986•29m ago•0 comments

Trends in sudden death mortality across Europe, 2010–2020

https://www.thelancet.com/journals/lanepe/article/PIIS2666-7762(26)00067-0/fulltext
2•akyuu•32m ago•0 comments

Man stole coworkers identity for 30 yrs, victim in mental hosp exonerated by DNA

https://www.cbsnews.com/minnesota/news/matthew-keirans-coworker-identity-theft-sentence-william-w...
4•randycupertino•34m ago•1 comments

Error 404 (Not Found) 1

http://google.com/does-not-exist
2•pbhn•34m ago•1 comments

Mortgage lenders to consider rent history in mortgage applications

https://www.marketplace.org/story/2026/04/23/fannie-freddie-change-to-make-it-easier-for-renters-...
2•littlexsparkee•36m ago•0 comments

Working with Claude Code: A Field Manual

https://blog.iannelson.uk/working-with-claude-code
2•ianfrasernelson•37m ago•0 comments

Robotic Security Dogs Now on the Job to Protect Crops

https://www.globalagtechinitiative.com/in-field-technologies/robotics-automation/robotic-security...
3•rmason•37m ago•2 comments

Supreme Court to hear argument on law enforcement's use of "geofence warrants"

https://www.scotusblog.com/2026/04/court-to-hear-argument-on-law-enforcements-use-of-geofence-war...
3•throw0101c•38m ago•1 comments

Anthropic CPO leaves Figma board after reports of competing product

https://techcrunch.com/2026/04/16/anthropic-cpo-leaves-figmas-board-after-reports-he-will-offer-a...
2•gmays•40m ago•0 comments

Editable 3D models with code or AI in Roblox

https://twitter.com/roblox/status/2047406073263382834
3•dmarcos•42m ago•0 comments

What Is an Enterprise Learning Management System?

1•financehub•43m ago•0 comments

SQLite Vec1 Vector Extension for vector search

https://sqlite.org/vec1/doc/trunk/doc/vec1.md
1•OutOfHere•48m ago•0 comments

Show HN: I've built a nice home server OS

https://lightwhale.asklandd.dk/
16•Zta77•49m ago•3 comments

The Surveillance Accountability Act Demands Warrants for Data

https://reclaimthenet.org/surveillance-accountability-act
2•Cider9986•49m ago•0 comments

Show HN: Wayland Wlroot Hjkl Everywhere

https://git.sr.ht/~hocwp/blog/tree/main/wlroot-hjkl-everywhere.md#wayland-wlroot-codehjklcode-eve...
2•pbrhocwp•51m ago•0 comments

Cloudflare for SaaS: your old provider can silently keep your domain

https://blog.iodev.org/blog/cloudflare-saas-custom-hostname-conflict/
4•else42•53m ago•0 comments

Show HN: Codex context bloat? 87% avg reduction on SWE-bench Verified traces

https://www.npmjs.com/package/pando-proxy
4•george_ciobanu•57m ago•2 comments