frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•11mo 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•11mo 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?

All in One for AI Chatbot

https://nottoai.com/
1•jeyzolo•1m ago•1 comments

Opus 4.6 is getting BAD [video]

https://www.youtube.com/watch?v=j7oHwvEcrC8
1•zadkey•2m ago•1 comments

Free Blur Image Online – Easily Blur Your Photos

https://www.youtube.com/redirect?q=https://www.blurimageonline.com
1•teroquyiqwu•5m ago•0 comments

Save tokens and save money with this self-evolving beast

https://github.com/juyterman1000/entroly
1•ashuabhi•9m ago•0 comments

A watch made for space

https://www.cnn.com/2026/04/13/style/iwc-schaffhausen-space-watch
1•1659447091•11m ago•0 comments

DECT (Digital Enhanced Cordless Telecommunications)

https://en.wikipedia.org/wiki/DECT
1•gregsadetsky•12m ago•0 comments

MCP server for personal finance so AI assistants can manage money

https://era.app/articles/how-to-connect-claude-to-your-bank-account/
1•era_context•13m ago•1 comments

Municipal water fluoridation, adolescent IQ and cognition across the life course

https://www.pnas.org/doi/full/10.1073/pnas.2536005123
1•cpncrunch•16m ago•0 comments

A portable social graph on Base – own your friends and currency on-chain

https://moondala.one
1•HamoodBahzar•16m ago•0 comments

A new spam policy for "back button hijacking"

https://developers.google.com/search/blog/2026/04/back-button-hijacking
4•zdw•19m ago•1 comments

Open Agents. Spawn coding agents that run infinitely in the cloud

https://open-agents.dev/
1•iBelieve•19m ago•0 comments

Sometimes powerful people just do dumb shit

https://www.joanwestenberg.com/sometimes-powerful-people-just-do-dumb-shit/
3•zdw•21m ago•0 comments

Social media platforms need to stop never-ending scrolling, UK's Starmer says

https://www.reuters.com/business/media-telecom/social-media-platforms-need-stop-never-ending-scro...
1•1vuio0pswjnm7•26m ago•2 comments

Attorneys Face Disciplinary Charges, License Suspension for AI Misuse

https://www.law.com/therecorder/2026/04/13/two-attorneys-face-disciplinary-charges-third-agrees-t...
1•1vuio0pswjnm7•29m ago•1 comments

Hybrid Constructions: The Post-Quantum Safety Blanket

https://soatok.blog/2026/04/13/hybrid-constructions-the-post-quantum-safety-blanket/
1•zdw•31m ago•0 comments

Show HN: Prmana – OIDC SSH Login for Linux with DPoP (Rust, Apache 2.0)

https://github.com/prodnull/prmana
1•cbchhaya•34m ago•0 comments

HR 8197 – A Bill to Terminate the All-Domain Anomaly Resolution Office

https://www.congress.gov/bill/119th-congress/house-bill/8197/text?s=1&r=1
3•OhMeadhbh•36m ago•1 comments

Reddit content moderation is broken

https://old.reddit.com/
1•pavas•37m ago•1 comments

Aura – A locally-sovereign cognitive architecture for Apple Silicon

https://github.com/youngbryan97/aura
1•bryanyoung97•37m ago•0 comments

A Dumb Introduction to Z3

https://ar-ms.me/thoughts/a-gentle-introduction-to-z3/
2•y1n0•40m ago•0 comments

Contained Codex Networking

1•orbisvicis•42m ago•0 comments

Developer to Manager

https://matthewquerzoli.com/#/blog/08-10-2025-developer-to-manager
2•Quiza12•42m ago•0 comments

An Explainer of Section 702 of the Foreign Intelligence Surveillance Act

https://www.brennancenter.org/our-work/research-reports/section-702-foreign-intelligence-surveill...
1•Cider9986•42m ago•0 comments

We're Using So Much AI That Computing Firepower Is Running Out

https://www.wsj.com/tech/ai/ai-is-using-so-much-energy-that-computing-firepower-is-running-out-15...
2•1vuio0pswjnm7•42m ago•0 comments

Everyone Has Trump's Phone Number Now

https://www.theatlantic.com/politics/2026/03/trump-phone-number/686370/
3•Cider9986•43m ago•0 comments

Medicine piggybacks onto fat absorption pathways to allow oral delivery

https://medicalxpress.com/news/2026-03-medicine-piggybacks-fat-absorption-pathways.html
2•PaulHoule•44m ago•0 comments

David Wynn Miller

https://en.wikipedia.org/wiki/David_Wynn_Miller
3•thunderbong•47m ago•0 comments

A New Computer Chip Could Withstand the Hellscape of Venus

https://www.sciencealert.com/a-new-computer-chip-could-finally-withstand-the-hellscape-of-venus
2•y1n0•53m ago•0 comments

OpenPanel – Open-Source Web and Product Analytics

https://openpanel.dev/
1•radeeyate•54m ago•0 comments

Show HN: React-native-sightline – floating dev overlay for FPS/memory/re-render

https://github.com/Srikanth-AD/react-native-sightline
2•stackdirector•56m ago•0 comments