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?

Switching to electric stoves can dramatically cut indoor air pollution

https://news.stanford.edu/stories/2025/12/gas-propane-stoves-nitrogen-dioxide-exposure-health-ris...
1•Doriell•2m ago•0 comments

Real Engineers Dig with Their Bare Hands

https://www.minid.net/2026/7/14/how-to-automatise-with-ai
1•meerita•2m ago•0 comments

A quick look at zero-knowledge proofs

https://bernsteinbear.com/blog/zkp/
1•birdculture•3m ago•0 comments

Show HN: Pier – Give every agent session its own cloud VM, on your own infra

https://pier.kak.dev/
1•kasktra•7m ago•0 comments

Hybrid Structured Editing

https://programming-journal.org/2026/11/1/
1•mpweiher•7m ago•0 comments

Myspace eyes comeback as an an 'antidote' to social media fatigue

https://www.cnbc.com/2026/08/09/myspace-comeback-rival-social-media-giants.html
1•pseudolus•8m ago•0 comments

The Analytic Monopoly on AI Philosophy

https://millermanschool.substack.com/p/the-analytic-monopoly-on-ai-philosophy
1•theanonymousone•10m ago•0 comments

Story of Roomy with Handmade Illustrations

https://story.roomy.space
1•jdsane•10m ago•0 comments

India's Republic of Uncles

https://www.economist.com/asia/2026/05/31/indias-republic-of-uncles
2•thunderbong•15m ago•3 comments

If You Get in a Car Crash, the Risk Is Growing Your Insurance Won't Pay

https://www.wsj.com/finance/if-you-get-in-a-car-crash-the-risk-is-growing-your-insurance-wont-pay...
2•impish9208•19m ago•1 comments

Tcl Note A1 Nxtpaper Review (2026): A Hybrid Tablet for Taking Notes and Watchi

https://www.wired.com/review/tcl-note-a1-nxtpaper-tablet/
1•joozio•19m ago•0 comments

One Japanese village defied the tsunami (2011)

https://www.nbcnews.com/id/wbna43018489
1•mpweiher•23m ago•0 comments

We are witnessing the death of the games console

https://mattcasmith.net/2026/08/09/death-of-the-games-console
1•mattcasmith•26m ago•0 comments

The Aaronson Oracle: an interactive lesson in human predictability

https://aaronsonoracle.com/
1•Tomte•27m ago•0 comments

Ask HN: Should AI's tell you they're AI?

3•logicallee•28m ago•2 comments

Show HN: Argonix – One AI-powered platform for SRE and cloud operations

https://argonix.io/
1•pydavid•31m ago•0 comments

Show HN: Free QR Code Generator – URL, Text, WiFi and VCard – Free, No Signup

https://at-use.com/tools/qr-code-generator
1•atuse•32m ago•1 comments

Angel Investor Simulator

https://store.steampowered.com/app/4771830/Angel_Investor_Simulator/
1•babuskov•32m ago•0 comments

Ask HN: What you using local models for?

1•kandros•33m ago•1 comments

Solitude as a new aspirational lifestyle: 'We are not lonely'

https://www.bbc.com/news/articles/c5y63dw2x3wo
2•paulpauper•35m ago•0 comments

Softlanding Linux System – ArchiveOS

https://archiveos.org/sls/
1•rbanffy•35m ago•0 comments

The economics professor who keeps running office hours

https://current.fas.harvard.edu/stories/meet-economics-professor-who-keeps-running-office-hours
1•paulpauper•36m ago•0 comments

Show HN: Restoredrill proves your Postgres backups restore

https://github.com/ahmadpiran/restoredrill
2•ahmadpiran•36m ago•0 comments

Taco Bell fans won't let cyclospora come between them and food

https://www.yahoo.com/entertainment/articles/taco-bell-fans-wont-let-100001989.html
2•paulpauper•38m ago•0 comments

Reducing Hallucinations in LLM-Gen. Code via Semantic Triangulation (OOPSLA 26)

https://github.com/msv-lab/just-tri-it
2•mechtaev•39m ago•0 comments

Ask HN: Do you use LLMs for non-coding related work?

1•muddi900•39m ago•1 comments

Forecasting the AI Bubble

https://siliconangle.com/2026/08/08/forecasting-ai-bubble-scarcity-turns-surplus/
1•trilogic•40m ago•0 comments

Supersonic Trebuchet [video]

https://www.youtube.com/watch?v=Co57SfcT-h0
1•walterbell•41m ago•0 comments

The West's Demographic Math No Longer Adds Up

https://www.politico.com/news/magazine/2026/08/08/europe-us-fertility-immigration-01029122
3•pseudolus•43m ago•1 comments

Stone Soup AI (2024)

https://simons.berkeley.edu/news/stone-soup-ai
1•mpweiher•50m ago•0 comments