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?

Walking Men from Around the World

https://mossandfog.com/walking-men-from-around-the-world/
1•gaws•27s ago•0 comments

Sycophantic Chatbots Cause Delusional Spiraling, Even in Ideal Bayesians

https://arxiv.org/abs/2602.19141
1•luispa•1m ago•0 comments

After Jenny Simpson&Jeff Browning, What Runners Should Know About Cardiac Events

https://www.trailrunnermag.com/training/after-jenny-simpson-and-jeff-browning-heres-what-runners-...
1•bookofjoe•5m ago•0 comments

Hegseth Announces AutoWarCom

https://www.militarytimes.com/news/your-military/2026/09/30/hegseth-announces-new-four-star-comma...
4•nick__m•6m ago•1 comments

Show HN: DragomanD – local language translator for Linux

https://dragomand.l10n-bg.dev/
1•eniac111•6m ago•0 comments

Expanding My Music Pipeline

https://www.coryd.dev/posts/2026/expanding-my-music-pipeline
1•nullpad•6m ago•0 comments

Show HN: Certify you wrote it and not AI

https://iwrote.co
1•arpanghoshal•8m ago•0 comments

YouTube lunatic designed and 3D printed a working mechanical calculator

https://www.theregister.com/offbeat/2026/09/30/youtube-lunatic-designed-and-3d-printed-a-working-...
2•joebuckwilliams•9m ago•0 comments

Swatting Calls: A Couple's Fight Against Online Stalkers and the Police

https://www.nytimes.com/2026/09/30/us/swatting-milwaukee-couple-settlement.html
2•nonfamous•10m ago•0 comments

Watch the Rogue AI Committee Hearing

https://www.hsgac.senate.gov/subcommittees/dmdcc/hearings/rogue-ai-securing-the-homeland-against-...
1•sans_souse•10m ago•0 comments

How to Select an Experiment: More on experiment metastrategy

https://chillphysicsenjoyer.substack.com/p/how-to-select-an-experiment
1•crescit_eundo•15m ago•0 comments

Elon Musk, Palmer Luckey, Newt Gingrich to Help Pentagon with Warfare Initiative

https://www.cnbc.com/2026/09/30/musk-luckey-gingrich-pentagon-hegseth-.html
6•Teever•16m ago•0 comments

pldb: programming languages papers

https://pldb.kirancodes.me/
3•matt_d•18m ago•0 comments

Show HN: Real-time raytracing around a black hole

https://rivendell.dmitrybrant.com/blackhole/
1•dmitrybrant•18m ago•0 comments

Qc: Video quality check and h264/HEVC/av1 ladder optimization

https://github.com/eko/qc
2•eko•23m ago•0 comments

Vast-10M

https://www.voltropy.com/blog/vast-10m/
1•amirhirsch•24m ago•0 comments

Origin: Computer Science Not About Computers, Astronomy Not About Telescopes

https://quoteinvestigator.com/2021/04/02/computer-science/
2•pcfwik•25m ago•0 comments

Codex Pricing: Pro has unlimited 5.6 usage

https://chatgpt.com/codex/pricing/
11•rene_d•28m ago•6 comments

DepthFirst: Continuous Cyber Defense

https://depthfirst.com/
1•handfuloflight•28m ago•0 comments

The $170B lesson data center developers keep learning the hard way

https://www.fastcompany.com/91612143/ai-data-centers-local-communities
1•johnshades•29m ago•0 comments

16-year-old found Microsoft bug, got admin access to 17.3T-row databases

https://www.theregister.com/security/2026/09/30/16-year-old-researcher-found-a-microsoft-bug-got-...
5•johnshades•31m ago•0 comments

Gloriously project runs transformer model written in PDP-11 assembly [video]

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

Strata: Run a 125B-parameter AI model on a normal gaming PC

https://github.com/Niko1221/Strata
2•maille•35m ago•0 comments

Hackers stole US Military records during months-long data breach

https://techcrunch.com/2026/09/30/hackers-stole-millions-of-us-military-personnel-records-during-...
4•DamnInteresting•36m ago•0 comments

There Are Plenty of Laws on the Books to Check the A.I. Giants. Use Them

https://www.nytimes.com/2026/09/30/opinion/ai-anthropic-amodei-self-regulation.html
5•SLHamlet•37m ago•0 comments

Host Your First Profitable Meetup or Mini-Conference

https://outlier-media-co.ever795522.chatgpt.site/ebook/
1•EverGonzalez76•39m ago•0 comments

Tell HN: Thanks for All the Fish

3•neilv•39m ago•0 comments

It may soon be possible to create "mirror life"

https://www.economist.com/science-and-technology/2026/09/30/it-may-soon-be-possible-to-create-mir...
3•vinni2•40m ago•0 comments

Decoupled DiLoCo for Resilient Distributed Pre-Training

https://arxiv.org/abs/2604.21428
1•lawrenceyan•42m ago•0 comments

Invisible XML (2025)

https://www.xml.com/articles/2025/12/02/invisible-xml-update/
5•devonnull•42m ago•0 comments