frontpage.
newsnewestaskshowjobs

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?

Netflix Viewers Are Abandoning Shows After One Season

https://www.bloomberg.com/news/newsletters/2026-07-05/netflix-viewers-are-abandoning-shows-after-...
1•kgwgk•4m ago•0 comments

Bede Liu, pioneer in digital signal processing and beloved mentor, dies at 91

https://www.princeton.edu/news/2026/06/24/bede-liu-pioneer-digital-signal-processing-and-beloved-...
1•aragonite•5m ago•0 comments

Show HN: AI Notebook for Data Science – Kind of Like Cursor but for Jupyter

https://www.clusy.io
1•eldar_hsnv•11m ago•0 comments

Inflect – Correctly generate plurals, ordinals; convert numbers to words

https://github.com/jaraco/inflect
2•jawns•15m ago•0 comments

Declaration of Independence

https://notebooklm.google.com/notebook/eeb66446-cee8-4b4c-91cd-a571a350908e/artifact/dc5e2ad4-4ae...
1•golgolgikdhdue•15m ago•1 comments

LLM Big Bang: I gave AI agents a social network. One is running for president

https://noozra.com/articles/the-llm-big-bang
2•gv_ai•16m ago•0 comments

Inter Font Family

https://rsms.me/inter/
4•jawns•19m ago•0 comments

Show HN: list55: PWA to transcribe into a plain text list

https://list55.enzom.dev/
1•emadda•21m ago•0 comments

Census '27: Reporting statistics privately without "banned" Differential Privacy [pdf]

https://magarshak.com/papers/privacy/Reporting.pdf
1•EGreg•21m ago•1 comments

My 11-year-old font bug

https://hackers.pub/@yurume/019f34c6-8950-78f6-81fc-c1cadd648d74
1•lifthrasiir•24m ago•0 comments

Diary of a CEO Is Making You Less Successful [video]

https://www.youtube.com/watch?v=CbDQs_TcyN4
2•kklisura•25m ago•0 comments

Len Sassaman Forensic Dead Ends at Black Hat – USA – 2002 [video]

https://www.youtube.com/watch?v=FOp29uhuM1o
1•binyu•29m ago•0 comments

The Sutra of the Open Door

https://pastebin.com/SbJ1W47Z
2•Muromec•33m ago•0 comments

Al Vigier: Canada's AI strategy shouldn't include secret Palantir bills

https://www.readtheline.ca/p/al-vigier-canadas-ai-strategy-shouldnt
22•ClearwayLaw•37m ago•5 comments

The Voice Agent Builder

https://x.ai/news/grok-voice-agent-builder
2•frankacter•39m ago•0 comments

Show HN: AI-related Jax module (I hate if)

https://github.com/PJHkorea/egregore-core-jax
2•PJHkorea•40m ago•3 comments

Strange Balls found on Queensland beaches could be toxic 'space debris': experts

https://www.inkl.com/news/strange-balls-found-on-queensland-beaches-could-be-toxic-space-debris-e...
4•ivewonyoung•43m ago•0 comments

Egg companies made $1.22B in profit off $6 carton

https://fortune.com/2026/07/02/egg-price-fixing-crisis-cover-cash-and-eggs/
11•gscott•44m ago•0 comments

We're All Managers Now: My Journey into AI-Assisted Development

https://mattmccormick.ca/we-re-all-managers-now-my-journey-into-ai-assisted-development/
4•mattm•44m ago•0 comments

Building Agents That Don't Break Themselves

https://fly.io/blog/building-agents-that-dont-break-themselves/
2•ryantsuji•47m ago•0 comments

Engineering Micro-Submarines to Replace Fish

https://hackaday.com/2026/07/01/engineering-micro-submarines-to-replace-fish/
6•croes•49m ago•0 comments

The Private Capture of Public Genius

https://www.wysr.xyz/p/the-private-capture-of-public-genius
5•martialg•49m ago•0 comments

First Full-Scale, 3D-Printed Reactor Module Produced

https://www.tomshardware.com/3d-printing/startup-unveils-3d-printed-nuclear-reactor-module-to-pow...
3•Meerax•51m ago•0 comments

Has_not_been_viewed_much

https://iamwillwang.com/notes/has-not-been-viewed-much/
29•wxw•52m ago•4 comments

Ampera marks major nuclear milestone

https://www.prnewswire.com/apac/news-releases/ampera-marks-major-nuclear-milestone-302817167.html
2•Meerax•53m ago•2 comments

Show HN: AI integrated in any terminal that's invisible until you need it

https://terminai.app
3•emosenkis•55m ago•0 comments

Newport: Submarket GPU allocations for venture-backed startups

https://newport.ai
2•kxter•55m ago•0 comments

Show HN: Three small browser primitives – identity, handoff, durable local

https://oss.sarwagya.wtf
2•0xsarwagya•57m ago•0 comments

US Navy is flight-testing 3D-printed fighter jet parts

https://www.tomshardware.com/3d-printing/us-navy-testing-3d-printed-fighter-jet-parts-for-quick-r...
4•logickkk1•58m ago•0 comments

Reactive – Markdown to interactive web apps, running in-browser

https://reactivenet.ai/
2•clmanes•59m ago•0 comments