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

WSL graphics driver update brings better GPU support for Linux apps

https://www.theregister.com/2026/03/20/linux_directx_and_opengl/
1•Brajeshwar•2m ago•0 comments

Ask HN: Is AI Safety a Paradox?

1•tndibona•5m ago•0 comments

Seeing Trump Clearly

https://www.craigmurray.org.uk/archives/2026/03/seeing-trump-clearly/
2•jules-jules•5m ago•1 comments

Meditation and mindfulness explained as cognitive mechanics

https://dimitrov.im/mental-mechanics/
1•since7•6m ago•1 comments

After Cosmic Crisp, Scientists Unveil an Apple for the Climate Change Era

https://www.nytimes.com/2026/03/21/us/new-apple-climate-change.html
1•saikatsg•7m ago•0 comments

Does your job have a soul?

https://vaibhavm.substack.com/p/summoning-ghosts-not-building-animals
2•vaibhavgeek•8m ago•0 comments

UK government yet to trial OpenAI tech months after signing partnership

https://www.theguardian.com/politics/2026/mar/21/uk-government-yet-to-trial-openai-tech-months-af...
2•chrisjj•9m ago•0 comments

Infinite Claude Code Canvas (OSS)

https://www.49agents.com
2•halcdev•9m ago•1 comments

Conductor: Deterministic Routing for Multi-Agent Workflows

https://jasonrobert.dev/blog/2026-03-20-introducing-an-ai-agent-workflow-conductor/
3•cebert•11m ago•0 comments

Brazil's UFO capital marks 30 years since 'alien encounter'

https://www.theguardian.com/science/2026/mar/21/anniversary-et-of-legend-varginha-alien-incident-...
2•n1b0m•11m ago•1 comments

Avoiding Overflow Bugs in Fixed-Point Arithmetic with Formal Verification

https://github.com/nahhididwin/L-Representation/blob/main/hn/rm1.md
2•InputNothing•12m ago•0 comments

Show HN: Open-Source Knowledge Agents Template

https://vercel.com/blog/build-knowledge-agents-without-embeddings
2•flashbrew•13m ago•0 comments

Jürgen Habermas hoped rational discussion could save the world

https://economist.com/obituary/2026/03/19/jurgen-habermas-hoped-rational-discussion-could-save-th...
2•andsoitis•13m ago•0 comments

Live Free or Die Hard (2007) [video]

https://www.youtube.com/watch?v=WXPPz8-6IOk
2•keepamovin•13m ago•0 comments

Drug Discovery Books

https://drughunter.com/resource/drug-discovery-books
2•sebg•14m ago•0 comments

What 'Jurassic Park' got wrong about venomous dinosaurs

https://www.popsci.com/science/venomous-dinosaurs-podcast/
2•Brajeshwar•16m ago•0 comments

A stealth benchmark of major cloud browser providers

https://browser-use.com/posts/stealth-benchmark
4•Reformedot•18m ago•0 comments

Internet outages disrupt life in Russia, fueling fears of a digital crackdown

https://www.cnn.com/2026/03/21/europe/internet-outages-russia-digital-crackdown-intl-cmd
2•consumer451•19m ago•1 comments

Why western carmakers' retreat from electric risks dooming them to irrelevance

https://www.theguardian.com/business/2026/mar/21/west-carmakers-retreat-electric-vehicle-risks-ir...
6•n1b0m•19m ago•0 comments

How Will AI Affect the US Labor Market?

https://www.goldmansachs.com/insights/articles/how-will-ai-affect-the-us-labor-market
2•pseudolus•22m ago•0 comments

Data Centers Are Military Targets Now

https://theintercept.com/2026/03/20/ai-data-centers-military-targets-iran-war/
3•jbegley•23m ago•0 comments

Claude × Codex Collab Two AI Coding Agents. One Orchestrator. Zero API Costs

https://github.com/AlessioZazzarini/claude-codex-collab
2•ncvdv•24m ago•1 comments

Show HN: Deterministic security solution for AI agents – OpenClaw and 2 more

2•steadeepanda•28m ago•0 comments

Astronomers keep finding new moons of Jupiter and Saturn

https://www.space.com/astronomy/saturn/astronomers-keep-finding-new-moons-of-jupiter-and-saturn
3•Brajeshwar•29m ago•0 comments

Just make it hard to fail

https://nekolucifer.substack.com/p/just-make-it-really-hard-to-fail
4•andai•33m ago•2 comments

OpenAI to double workforce as business push intensifies

https://www.ft.com/content/7ffea5b4-e8bc-47cd-adb4-257f84c8028b
2•mfiguiere•36m ago•0 comments

Ask HN: Offline forecasting model to real-time sensor data?

2•anonymoosestdnt•37m ago•0 comments

Fedora Asahi Remix 43 is now available

https://fedoramagazine.org/fedora-asahi-remix-43-is-now-available/
2•birdculture•38m ago•0 comments

Show HN: Flowelio – 33 free calculators that run in the browser

https://flowelio.com
2•stramanu•38m ago•2 comments

America Now Has More Spas and Gyms Than Stores Selling Actual Stuff

https://www.wsj.com/real-estate/commercial/service-economy-real-estate-ecf9a414
2•fortran77•38m ago•1 comments