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?

Mathematics, Science and Artificial intelligence by Prof. Weinan E [video]

https://www.youtube.com/watch?v=70oUM-TdRds
1•belleville•1m ago•0 comments

Why Humanity Might Have to Declare War on AI (By: William Spaniel) [video]

https://www.youtube.com/watch?v=OAU3lAadXLM
1•4diii•2m ago•0 comments

Designing LLM failover as a route change, not a retry loop

https://modelflare-blog.static.hf.space/model-groups-and-failover.html
1•Matthewmodelfla•2m ago•0 comments

Can AI Automate Epoch?

https://epoch.ai/publications/can-ai-automate-epoch
3•gmays•13m ago•0 comments

The most powerful and free local AI note taking app I've ever used

https://github.com/seacen/meetcap
2•seacen•15m ago•2 comments

Show HN: Fan Transition – Generate outfit transition videos from a single photo

https://fantransition.com/
1•humphrey_liu•19m ago•0 comments

Show HN: Stream Reducer – Audio AI Summarization at Scale

https://reducer.xgoose.org/
1•lobstey•20m ago•0 comments

Show HN: PredixLab – my personal system to discover investment opportunities

https://github.com/predixlab/predixlab-infra
1•unliftedq•22m ago•0 comments

Show HN: See diffs of Wikipedia over time

https://memoryhole.app/wiki-timeline
1•flippant•23m ago•0 comments

Show HN: Simulate an engineering blog, or an idea or an incident

https://github.com/smarchone/sim-xp
1•smarch27•29m ago•0 comments

The Paradox at the Heart of AI and Science – Terence Tao [video]

https://www.youtube.com/watch?v=svl_1upFpQo
1•ent101•33m ago•0 comments

I built an LMSR prediction market for a classical music competition

https://www.ratemyfestival.com/competitions/wieniawski-2026/odds
1•onesemble•35m ago•1 comments

What is the ultimate truth? We asked leading AI models

https://ultimatetruth.one
2•regnull•35m ago•1 comments

Using AI as a tutor to do math with pen and paper

https://twitter.com/nichochar/status/2111822781214294329
4•nichochar•36m ago•1 comments

Chums

https://chums.club/
1•soheilpro•36m ago•0 comments

MS Project – I made my own app finally

2•sttock•36m ago•0 comments

Show HN: DogCatTrace – Clapt was distilled from some random dog

https://github.com/xiebaiyuan/DogCatTrace
2•xiebaiyuan•39m ago•0 comments

Jio Platforms IPO

https://finshots.in/archive/a-few-more-things-about-the-jio-platforms-ipo/
1•vismit2000•39m ago•0 comments

Good Interfaces Make Good Neighbors

https://boz.com/articles/good-interfaces-make-good-neighbors
2•swolpers•42m ago•0 comments

ZX Spectrum Next Laptop

https://www.dorchester3d.com/printing/blog/2020/11/zx-spectrum-next-laptop-version-2
1•utopcell•46m ago•0 comments

IMF World Economic Outlook 2026 [pdf]

https://www.imf.org/-/media/files/publications/weo/2026/october/english/text.pdf
4•gmays•48m ago•0 comments

Show HN: Neuron, agents that set themselves up from your GitHub repo

https://www.neuronbot.in
2•tanay_kapoor•50m ago•0 comments

Now you can simply watch an ad to get hacked [video]

https://www.youtube.com/watch?v=oTNqhH4KzxY
2•s_e_n_a_p_a_t_y•53m ago•1 comments

MyChart health data opt-out journey: notaries, calls, visit to Epic

https://www.statnews.com/2026/10/15/health-data-privacy-medical-record-opt-out-barriers-investiga...
1•EA-3167•53m ago•1 comments

The Sphere Packing Project – Post 1 – The Story

https://leanprover-community.github.io/blog/posts/SpherePacking-1/
1•Aleksandr_NFA•54m ago•0 comments

The Annotated VT100 Firmware

https://vt100.net/dec/vt100/rom/
2•Aleksandr_NFA•54m ago•0 comments

Post-mortem of technical issue – August 29, 2019

https://zerodha.com/marketintel/bulletin/229363/post-mortem-of-technical-issue-august-29-2019
1•Aleksandr_NFA•55m ago•0 comments

The Third Risk

https://thirdrisk.org/
3•paulpauper•1h ago•0 comments

The Nick Cammarata Model of Happiness (Reconstructed from His Tweets)

https://federicorcassarino.substack.com/p/the-nick-cammarata-model-of-happiness
1•paulpauper•1h ago•0 comments

The Rise of In-Office Remote Work

https://www.theatlantic.com/ideas/2026/10/in-office-remote-work/688993/
5•Garbage•1h ago•0 comments