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?

Created a benefits assistant for 401k, mega backdoor Roth, and HSA

https://www.cedarwise.ai
1•yuchaoran2011•45s ago•1 comments

Apple to Pay $250 per iPhone Duo Foldable Display in Samsung Deal

https://www.macrumors.com/2026/09/11/apple-pay-250-dollars-iphone-duo-display-samsung/
2•mfiguiere•1m ago•0 comments

Thinking and moving tasks surpass crossword puzzles at brain health

https://www.yorku.ca/news/2026/08/19/thinking-and-moving-tasks-surpass-crossword-puzzles-at-brain...
1•debo_•2m ago•0 comments

AI researcher Andrew Tulloch is leaving Meta

https://www.semafor.com/article/09/09/2026/ai-researcher-andrew-tulloch-is-leaving-meta
1•gmays•2m ago•0 comments

ChatGPT Sites Updates

https://twitter.com/ChatGPT/status/2098457920291946894
1•tosh•5m ago•0 comments

Show HN: Toast, a beautiful by default in terminal IDE

https://github.com/paradise-runner/toast
1•dividedcomet•5m ago•0 comments

MIT Explains the 12 Possible Endings for AI

https://www.youtube.com/watch?v=FLcrvMfHUJM
1•nyc111•9m ago•0 comments

Blue-X – Exploring wavelength reduction (2–7 nm range) beyond EUV

https://euvlitho.com/blue-x-copy/
1•peter_d_sherman•9m ago•1 comments

Suno v6 released for music creation

https://suno.com/blog/introducing-v6
1•utiiiD•10m ago•0 comments

If we all didn't copy each other life would be awful

https://michaelgv.uk/posts/2026/09/the-advantages-of-culture/
1•NesquikMike•11m ago•0 comments

Scientists Discover the Earliest Evidence of Drug Use in 25,000-Year-Old Teeth

https://www.openculture.com/2026/09/scientists-discover-the-earliest-evidence-of-drug-use-in-2500...
2•Brajeshwar•13m ago•0 comments

Who Owns California's Gold?

https://reason.com/2026/09/07/who-owns-californias-gold/
2•bookofjoe•15m ago•0 comments

A Severe Misalignment of AI in Mathematics - Terence Tao et al

https://mathandai.org/
4•meredydd•15m ago•0 comments

Room 641A

https://en.wikipedia.org/wiki/Room_641A
6•paimapi•15m ago•1 comments

The Rise of AI Slop Tools

https://twitter.com/julihespenheide/status/2098070502157791452
2•picdit•16m ago•0 comments

Show HN: Viaduct – Architecture change sets for AI coding agents

https://c4.quietgridlabs.com/
2•igrlgkv•17m ago•0 comments

Show HN: Make better humans and race them

https://race.darebuild.com/
2•jimhi•18m ago•0 comments

Agents on Rails: Best model solves 35% of feature benchmark runs

https://rubyonrails.org/2026/9/9/agents-on-rails-stage-2
4•chalmovsky•18m ago•2 comments

Shipping my story before the code

https://thinkingaloud.bearblog.dev/generallyavailableintelligence/
2•sanmathigb•18m ago•0 comments

CHERIoT provides strong and usable isolation without an MMU

https://queue.acm.org/doi/10.1145/3831361
2•fanf2•18m ago•0 comments

Show HN: MCP server manager: KyttoMCP – in beta

https://kytto.jakubhecht.sk/
2•JakubStudio•20m ago•0 comments

The Cretan Method

http://hintjens.com/blog:81
2•thunderbong•21m ago•0 comments

Rope, twine and thread: Invisible technologies of the Stone Age

https://knowablemagazine.org/content/article/society/2026/prehistory-lost-threads
2•knowablemag•22m ago•0 comments

What It Takes to Build Yocto Properly on Arch Linux

https://jetm.github.io/blog/posts/yocto-on-arch-glibc-ceiling/
3•amanciero•24m ago•0 comments

Λ Snap – An inviting programming language for kids and adults for CS study

https://snap.berkeley.edu/
11•dr_kiszonka•24m ago•1 comments

SwarmLLM – Every device brings a slice. Together they run the whole model

https://github.com/Nehanth/swarmllm
2•craneca0•24m ago•0 comments

Bill Ackman's journey into tennis left him stranded on one of its courts

https://www.nytimes.com/athletic/7580250/bill-ackman-tennis-finance-hall-fame/
2•mooreds•25m ago•0 comments

America can't grow its way out of its debt problem

https://www.cnn.com/2026/09/11/economy/debt-bonds-growth
2•mooreds•25m ago•0 comments

Show HN: SyntheticAIdata – synthetic data for CV, 100k free credits/month

https://app.syntheticaidata.com/
3•gvuksic•27m ago•1 comments

What use is certification? (2004)

https://www.mooreds.com/wordpress/archives/116
2•mooreds•28m ago•0 comments