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

WebAssembly with Go: Taking Web Apps to the Next Level (2023)

https://permify.co/post/wasm-go/
1•mooreds•18s ago•0 comments

The batteries powering the fastest racing EVs

https://www.bbc.com/future/article/20251127-the-batteries-powering-the-worlds-fastest-racing-evs
1•giuliomagnifico•53s ago•0 comments

Sony A7 V Review

https://www.dpreview.com/reviews/sony-a7-v-review
1•picture•1m ago•0 comments

Progress on TypeScript 7 – December 2025

https://devblogs.microsoft.com/typescript/progress-on-typescript-7-december-2025/
2•DanRosenwasser•1m ago•0 comments

Responsible Disclosure: Joiners, Movers, and Leavers in NHS BSA

https://shkspr.mobi/blog/2025/12/responsible-disclosure-joiners-movers-and-leavers-in-nhs-bsa/
1•speckx•1m ago•0 comments

Siggraph Asia 2025 – Technical Papers Trailer [video]

https://www.youtube.com/watch?v=ZI8kh0FKlMM
1•ibobev•2m ago•0 comments

All Sources of DirectX 12 Documentation

https://asawicki.info/news_1794_all_sources_of_directx_12_documentation
1•ibobev•2m ago•0 comments

Your Face as a QR Code

https://research.swtch.com/qr/draw/
3•bookofjoe•2m ago•0 comments

Rotating Polygons on the Circle of Fifths [video]

https://www.youtube.com/watch?v=V0YH8M6C-VM
1•EPendragon•2m ago•0 comments

Stack Overflow AI Assist–a tool for the modern developer

https://stackoverflow.blog/2025/12/02/introducing-stack-overflow-ai-assist-a-tool-for-the-modern-...
2•ulrischa•6m ago•0 comments

Bill to disallow dual citizenship proposed

https://www.msn.com/en-us/news/politics/citizenship-requirements-to-change-for-millions-of-americ...
2•LadyCailin•6m ago•1 comments

A framework for unifying cognition across all substrates

https://defaulttodignity.substack.com/p/the-end-of-anthropocentric-ethics
1•kenhallart•8m ago•1 comments

Ray and Kubernetes: The Distributed OS for AI/ML [video]

https://www.youtube.com/watch?v=7dXQeAnscuc
1•northlondoner•9m ago•0 comments

Ask HN: Who is fundraising? (December 2025)

2•surprisetalk•11m ago•0 comments

Measuring information loss when adding noise and adjusting data resolution

https://www.testingbranch.com/information_loss_and_noise/
1•mpcsb•11m ago•0 comments

When You Give a Manager a Chatbot

https://disgruntleddeveloper.substack.com/p/when-you-give-a-manager-a-chatbot
4•jermaustin1•11m ago•0 comments

Software Engineering Is Map Making, Not Magic

https://www.chrisbako.com/posts/2025-11-16-what-the-fuck-is-swe
2•ChrisbyMe•12m ago•0 comments

Apple to beat Samsung in smartphone shipments for first time in 14 years

https://sherwood.news/tech/apple-to-beat-samsung-in-smartphone-shipments-for-first-time-in-14-years/
5•avonmach•14m ago•0 comments

Show HN: Roundtable – A rubber duck that argues with itself

https://roundtable.ovlo.ai
2•andrewgm•15m ago•0 comments

Fizzy, the Kanban tracking tool for issues and ideas by 37signals

https://github.com/basecamp/fizzy
4•sparklingmango•15m ago•0 comments

Kids who ran away to 1960s San Francisco

https://www.fieldnotes.nautilus.quest/p/the-kids-who-ran-away-to-1960s-san
4•zackoverflow•16m ago•1 comments

Show HN: CodeBake – so that PM tasks aren't extra work

https://codebake.ai
1•advisador•16m ago•1 comments

Indian order to preload state-owned app on smartphones sparks political outcry

https://www.theguardian.com/world/2025/dec/02/indian-order-preload-state-owned-sanchar-saathi-app...
3•beardyw•19m ago•0 comments

Solid State Volumetric Display

https://mastodon.social/@ancientjames/115648797968721973
2•todsacerdoti•19m ago•0 comments

D-Wave Announces Formation of U.S. Government Business Unit

https://www.dwavequantum.com/company/newsroom/press-release/d-wave-announces-formation-of-u-s-gov...
1•donutloop•19m ago•0 comments

Show HN: DynamicHorizon – Dynamic Island for macOS

https://www.dynamichorizon.app/
1•DHDEV•19m ago•0 comments

Openlane – Open-source compliance software

2•adelowo•20m ago•0 comments

What Is the "Bean Soup Theory" on TikTok?

https://www.insidehook.com/internet/bean-soup-theory-tiktok
2•RickJWagner•21m ago•0 comments

Ask HN: Why not store browser tabs in SSD?

1•anon115•21m ago•0 comments

Anthropic in Advanced Talks to Buy Bun

https://www.theinformation.com/articles/anthropic-advanced-talks-buy-developer-tool-startup-first...
1•9cb14c1ec0•22m ago•0 comments