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?

Breaking down Amazon's mega dropdown (2013)

https://bjk5.com/post/44698559168/breaking-down-amazons-mega-dropdown
1•TheAceOfHearts•8m ago•0 comments

Kubernetes v1.37: Pod Certificates and Cluster Trust Bundles

https://kubernetes.io/blog/2026/08/28/kubernetes-v1-37-pod-certificates-and-cluster-trust-bundles/
1•ahmedtd•12m ago•0 comments

Retatrutide – people risk the gray market for the newest weight-loss drug

https://www.theguardian.com/science/2026/aug/31/retatrutide-weight-loss-drug-gray-market
2•andsoitis•14m ago•0 comments

The Big Leak (1987)

https://www.americanheritage.com/big-leak
1•jhide•14m ago•0 comments

2004 RuneScape fit a multiplayer RPG into 56k dial-up

https://jkm.dev/posts/how-2004-runescape-fit-a-multiplayer-rpg-into-56k-dialup/
1•fagnerbrack•14m ago•0 comments

AWS Activate Credits

1•m4sk1994•15m ago•0 comments

Deadpan Photography: Enjoying the Pretence

https://photoni.st/index.php/2026/07/12/deadpan-photography-enjoying-the-pretence/
1•NaOH•16m ago•0 comments

Papercut SMTP – The Simple Desktop Email Server

https://github.com/ChangemakerStudios/Papercut-SMTP
1•l8rlump•16m ago•0 comments

Why 1M context windows won't solve agent memory (and a protocol that does)

https://github.com/zackemannen81/docs-first_continuity-protocol
1•mrwhite81•17m ago•0 comments

Release Release v26.8.1.2041-LTS · ClickHouse/ClickHouse

https://github.com/ClickHouse/ClickHouse/releases/tag/v26.8.1.2041-lts
1•kyisaiah47•18m ago•0 comments

The extraordinary rise of Miami's economy

https://www.economist.com/finance-and-economics/2026/08/31/the-extraordinary-rise-of-miamis-economy
1•andsoitis•26m ago•0 comments

OpenAI to Cut Off AI Models for SpaceX-Owned Cursor

https://www.reuters.com/business/media-telecom/openai-end-partnership-with-spacexs-cursor-2026-08...
4•m463•32m ago•1 comments

Young Builder Society Microgrant

https://www.youngbuildersociety.com
1•audreyfei•47m ago•0 comments

Linus Torvalds' uEmacs – the editor he has used since the 1980s

https://github.com/torvalds/uemacs
3•oumua_don17•47m ago•0 comments

Getting over the Nebulosity of Agents

https://text-incubation.com/getting-over-the-nebulosity-of-agents?2
1•krrishd•48m ago•0 comments

Inworld TTS Open Evaluation Toolkit: Reproducible TTS Evals

https://inworld.ai/blog/introducing-inworld-tts-open-evaluation-toolkit
5•rogilop•49m ago•0 comments

FDOT de-flocks: Automatic license plate reader permits revoked across Florida

https://www.msn.com/en-us/news/other/fdot-de-flocks-automatic-license-plate-reader-permits-revoke...
1•smalltorch•53m ago•0 comments

Arise – Agentic Runtime Identity Security Enforcement

https://requestrocket.com/blog/arise-api-gateway-isnt-ready
1•geoicons•53m ago•0 comments

Mu/TH/UR 6000 – An anonymous AI terminal styled as a 1979 mainframe

https://mu7hur.com/
1•pinkroro•54m ago•0 comments

New party school rankings are out. See where your school is

https://www.usatoday.com/story/sports/ncaaf/2026/08/31/best-party-schools-usa-new-2027-college-pa...
1•makerdiety•57m ago•0 comments

Edge City

https://www.edgecity.live
2•audreyfei•1h ago•0 comments

When declaring an incident becomes everyone's favorite workaround

https://greatcircle.com/blog/2026/08/11/declaring-incidents-for-side-effects/
2•bobbiechen•1h ago•0 comments

Apple Says OpenAI Is Destroying Evidence in Trade Secrets Case

https://www.bloomberg.com/news/articles/2026-08-31/apple-says-openai-is-destroying-evidence-in-tr...
5•sbulaev•1h ago•0 comments

Janet Verison 1.42.0 Out

https://github.com/janet-lang/janet/releases/tag/v1.42.0
3•veqq•1h ago•0 comments

LangLib: Esoteric Programming Languages, Formally

https://github.com/ilyasergey/langlib
2•matt_d•1h ago•0 comments

A video editor built for your codex/Claude Code

https://www.usekinara.com/
1•ebaad96•1h ago•2 comments

Elevator of the Year Winner Modernization of the Metropolis Trust Building

https://www.starelevator.com/projects/star-elevator-modernization-of-the-metropolis-trust-building
1•palashawas•1h ago•0 comments

Happy Birthday to the First Index Investment Trust

https://www.ft.com/content/c0341d15-482e-41a6-abe1-ef3e5e9a0d0b
2•JumpCrisscross•1h ago•0 comments

Claude Public Artifacts

https://www.google.com/search?q=site%3Aclaude.ai+public+artifacts
1•artursapek•1h ago•0 comments

Why Syracuse Can't Attract the Students It Needs to Pay the Bills

https://www.wsj.com/us-news/education/syracuse-student-application-enrollment-crisis-budget-ff142896
3•paulpauper•1h ago•0 comments