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?

Swoole AOT is officially becoming TypePHP

https://x.com/pronskiy/article/2066920077115441183
1•0xblinq•2m ago•0 comments

MCAmiga X-Phile Edition: Amiga File Manager

https://theoasisbbs.com/mcamiga-x-phile-edition-amiga-file-manager/
1•ibobev•3m ago•0 comments

Tooltrace Is Kind of Amazing

https://a.wholelottanothing.org/tooltrace-is-kind-of-amazing/
1•speckx•3m ago•0 comments

Show HN: Relaymux, a tmux-based meta-harness for local coding agents

https://github.com/mupt-ai/relaymux
3•byhong03•6m ago•0 comments

Alleged ice-cream cartel in Japan investigated as sweltering summer looms

https://www.theguardian.com/world/2026/jun/17/alleged-ice-cream-cartel-in-japan-investigated
1•mikhael•6m ago•0 comments

Google Made a Sad Boomer Mark Out of Me and There's Nothing I Can Do About It

https://freddiedeboer.substack.com/p/google-made-a-sad-boomer-mark-out
2•ForHackernews•7m ago•0 comments

I turned my blog into a mausoleum of everything I ever did online

https://jkosoy.com/
1•jkosoy•7m ago•1 comments

AI will transform biopharma – and why the sequence of change matters

https://twitter.com/BenjamineYLiu/status/2067238500877959315
1•lintaho•9m ago•0 comments

Reasons to be pessimistic (and optimistic) on the future of biosecurity

https://www.owlposting.com/p/reasons-to-be-pessimistic-and-optimistic
1•abhishaike•9m ago•0 comments

Show HN: Raise(fn) – fundraising intelligence YC keeps to itself

https://www.raisefn.com/
1•jpsdtj•10m ago•0 comments

From Error Log to Closed Ticket, Without Leaving Your Terminal

https://techcommunity.microsoft.com/blog/startupsatmicrosoftblog/from-error-log-to-closed-ticket-...
1•artlovan•11m ago•0 comments

AI Is Taking over Hospitals

https://www.theatlantic.com/health/2026/06/ai-healthcare-uber-moment/687567/
1•Brajeshwar•11m ago•1 comments

What Were Autoexec.bat and Config.sys? (and How They Worked)

https://comuniq.xyz/post?t=1261
2•01-_-•11m ago•0 comments

Show HN: Thrivez – A Linktree alternative with a built-in reward wall

https://thrivez.io/
2•Fotis-Karmpas•14m ago•0 comments

Open source second brain for live meetings hidden from screenshare

https://github.com/repowise-dev/unseen
3•swatiahuja•16m ago•0 comments

ChatGPT Is Down

https://chatgpt.com
5•axsaucedo•16m ago•0 comments

Show HN: Save and store you .env vars

https://envmanager.com/
2•pwbgerrits•16m ago•0 comments

Capital Factory CEO Joshua Baer killed in plane crash near Laredo, TX

https://cbsaustin.com/news/local/capital-factory-ceo-joshua-baer-killed-in-plane-crash-near-lared...
5•teach•18m ago•0 comments

World Cup 2026 CLI Dashboard

https://github.com/mansueli/world-cup-2026-cli-dashboard
2•mansueli•18m ago•0 comments

HelpNearby reached 25 countries in 20 days – built by 15-year-old for Sudan

https://help-nearby.org
2•Hyrezyxx•19m ago•0 comments

The Competitive Moat That AI Can't Replicate

https://ghostinthedata.info/posts/2026/2026-06-13-human-connection-moat/
2•speckx•20m ago•0 comments

Poland Invests $11M in ElevenLabs to Build AI Tech Hub

https://www.bloomberg.com/news/articles/2026-06-17/poland-invests-11-million-in-elevenlabs-to-bui...
4•01-_-•20m ago•1 comments

Ford's New $30k Electric Truck

https://carbuzz.com/ford-universal-vehicle-platform-30000-dollar-truck/
2•rationalist•20m ago•1 comments

A $40M Gold Heist Risks Exposing CIA's Top-Secret Spy Programs

https://www.wsj.com/politics/national-security/a-40-million-gold-heist-risks-exposing-cias-top-se...
2•bookofjoe•20m ago•1 comments

Submit your Boarding pass for the Roman Telescope

https://my.nasa.gov/specialevents/s/send-your-name-with-nancy-roman
2•MutexMaven•24m ago•1 comments

Inner monologues are still a mystery

https://www.npr.org/2026/06/08/nx-s1-5847933/inner-monologue-voices-language-brain
4•gmays•25m ago•0 comments

When People Cut Back on Instagram, Where Do They Go?

https://www.mondayeconomist.com/p/quitting-social-media
2•NomNew•26m ago•0 comments

FMAG: A single-instruction GPU virtual machine and toolchain

https://github.com/jangafx/FMAG
4•adamrezich•26m ago•1 comments

Only 16 Percent of Americans Think AI Will Have a Positive Impact on Society

https://techcrunch.com/2026/06/17/only-16-percent-of-americans-think-ai-will-have-a-positive-impa...
6•karakoram•26m ago•0 comments

SpaceX acquires Cursor for $60B. Can it fix Musk's coding division?

https://thenewstack.io/spacex-cursor-ai-coding/
2•Brajeshwar•27m ago•0 comments