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

Curator 'shocked' by Melbourne pitch performance in Ashes

https://www.rnz.co.nz/news/sport/582828/curator-shocked-by-melbourne-pitch-performance-in-ashes
1•tigerlily•5m ago•0 comments

ThinkTank, an "idea processor" that launched a religion (of outliners)

https://stonetools.ghost.io/thinktank-dos/
1•ChristopherDrum•11m ago•0 comments

Shields.io Uses the GitHub API

https://shields.io/blog/token-pool
1•angristan•12m ago•0 comments

Show HN: DeviceGPT – AI-powered Android device monitor with real data

1•teamzlab•12m ago•0 comments

The brain decides what to remember with sequential molecular timers

https://medicalxpress.com/news/2025-11-brain-reveals-sequentially-molecular-timers.html
1•PaulHoule•18m ago•0 comments

The Question Nobody Asks

https://aliveness.kunnas.com/articles/the-question-nobody-asks
1•ekns•18m ago•0 comments

Multi-Tenant SaaS's Wildcard TLS: An Overview of DNS-01 Challenges

https://www.skeptrune.com/posts/wildcard-tls-for-multi-tenant-systems/
1•skeptrune•19m ago•0 comments

Fast Cvvdp Implementation in C

https://github.com/halidecx/fcvvdp
2•todsacerdoti•22m ago•0 comments

The Sociology of the Crease

https://www.sebs.website/blog/the-sociology-of-the-crease
2•Incerto•25m ago•0 comments

Show HN: SecureNow – Security Fixes You Can Apply Today

https://www.securenow.dev
1•pelmenibenni•28m ago•0 comments

How to Complain

https://outerproduct.net/trivial/2024-03-25_complain.html
3•ysangkok•28m ago•1 comments

How to never make a bad decision

https://docs.google.com/document/d/1Ni9EOFM4-rADFT-cJHKUJUod8408zPk4zE-6IIHB4kU/edit?usp=sharing
1•PhilosophyForAI•32m ago•1 comments

Release age v1.3.0: post-quantum (and more)

https://github.com/FiloSottile/age/releases/tag/v1.3.0
1•birdculture•32m ago•0 comments

CEOs are hugely expensive. Why not automate them?

https://www.newstatesman.com/business/companies/2023/05/ceos-salaries-expensive-automate-robots
58•nis0s•35m ago•33 comments

Rethinking Tools in MCP

https://cra.mr/rethinking-the-definition-of-tools-in-mcp/
1•jshchnz•35m ago•0 comments

Spherical Cow

https://lib.rs/crates/spherical-cow
6•Natfan•40m ago•1 comments

Show HN: Golazo – Live soccer updates in your terminal

https://github.com/0xjuanma/golazo
1•rocajuanma•41m ago•0 comments

Slaughtering Competition Problems with Quantifier Elimination

https://grossack.site/2021/12/22/qe-competition.html
4•todsacerdoti•42m ago•0 comments

Airlines call in psychologists to stop passengers risking their lives for bags

https://www.telegraph.co.uk/business/2025/12/27/airlines-call-psychologists-passengers-risking-li...
2•elsewhen•42m ago•1 comments

62 years in the making: NYC's newest water tunnel nears the finish line

https://ny1.com/nyc/all-boroughs/news/2025/11/09/water--dep--tunnels-
21•eatonphil•46m ago•3 comments

Show HN: Upload a song and get a finished music video (no editing, no prompts)

https://musicvideogenerator.app/
2•hexadecimal•50m ago•1 comments

Halifax video game workers form first Ubisoft union in North America

https://www.cbc.ca/news/canada/nova-scotia/ubisoft-forms-first-union-north-america-halifax-9.7028674
3•cf100clunk•53m ago•0 comments

Two strangers. A terrorist bomb. An extraordinary tale of courage

https://bungalow-magazine.com/p/the-bench-2f5e
1•rmason•54m ago•0 comments

Show HN: Thingo

https://thingoboard.com
1•jryan49•56m ago•0 comments

As AI gobbles up chips, prices for devices may rise

https://www.npr.org/2025/12/28/nx-s1-5656190/ai-chips-memory-prices-ram
19•geox•59m ago•8 comments

Boost.MultiIndex Refactored

http://bannalia.blogspot.com/2025/12/boostmultiindex-refactored.html
1•ibobev•1h ago•0 comments

Mercury: The planet that shouldn't exist

https://www.bbc.com/future/article/20251223-mercury-the-planet-that-shouldnt-exist
1•1659447091•1h ago•0 comments

Why Your AI Characters Turn To Mush (and how I fixed it)

https://ghostintheweights.substack.com/p/why-your-ai-characters-turn-to-mush
2•llamataboot•1h ago•1 comments

Controlling Blood Sugar Cut Heart Disease Risk in Half, Study Says

https://www.nytimes.com/2025/12/15/well/blood-sugar-heart-disease-risk.html
6•brandonb•1h ago•1 comments

The Detection of Wash Trading

https://rajivsethi.substack.com/p/the-detection-of-wash-trading
7•neehao•1h ago•0 comments