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?

Another company I've never heard of lost my Data

https://idiallo.com/byte-size/another-company-lost-my-data-and-free-credit-monitoring
1•Brajeshwar•16s ago•0 comments

AI Search Analytics Confirm Higher Ed's LLM Winners Are Large Publics/Nonprofits

https://insights.kolariconsulting.com/p/ai-search-analytics-confirm-higher
1•aesokol•1m ago•0 comments

Uber tests rides for kids as young as 10, with extra pay for drivers

https://techcrunch.com/2026/11/19/uber-tests-rides-for-kids-as-young-as-10-with-extra-pay-for-dri...
1•ibn_khaldun•1m ago•0 comments

Show HN: Free red-flag checker for VPAT accessibility reports

https://acrpacket.com/check
1•rpst•2m ago•0 comments

Realistic lunar ISRU processing facilty simulation: Smelting rocks into metal [video]

https://www.youtube.com/shorts/bUqcwLoCO50
1•shroom1•2m ago•0 comments

FastAPI SaaS starter with Stripe subscriptions, EU VAT and HTMX

https://demo.getpylaunch.com
1•patryk_builds•3m ago•0 comments

Bending Spoons' Acquisition History

https://www.kadoa.com/companies/insights/bending-spoons-acquisitions
2•hubraumhugo•4m ago•0 comments

Agentic engineering with GitLab and your local agent: A walkthrough

https://about.gitlab.com/blog/agentic-engineering-walkthrough/
1•jerrygarcia•5m ago•0 comments

It's the End of the Academic World as We Know It

https://gkallis.substack.com/p/its-the-end-of-the-academic-world
2•the-mitr•8m ago•0 comments

Why small IT teams get stuck between free VPNs and Netskope or Proofpoint

https://arxcloud.io/vs/netskope-proofpoint/
2•justmedric•9m ago•0 comments

Why the U.S. air traffic control system still relies on an 'antique' network

https://www.npr.org/2026/11/19/nx-s1-6045773/faa-air-traffic-control-system-modernization-challenges
4•blinding-streak•10m ago•0 comments

Copyright is dead. Thank you Dario

https://larrysalibra.com/copyright-is-dead-thank-you-dario/
1•larrysalibra•11m ago•0 comments

Jon McCormack Retires from Apple

https://daringfireball.net/2026/11/mccormack_retires_from_apple
1•Brajeshwar•11m ago•0 comments

Introduction to Genie

https://docs.vala.dev/genie/introduction
1•giancarlostoro•12m ago•0 comments

SoduWork – AI agents must show evidence before a task passes

https://medium.com/@csdn/two-days-at-the-top-soduwork-hits-no-1-1f32a3f89d85
3•Aki_ii•13m ago•0 comments

Show HN: Drive around my village in 3D

https://cherwellvalleymotorclub.app
3•johnwards•13m ago•1 comments

Jonathan Swift vs. AI

https://www.thedial.world/articles/news/schools-teachers-artificial-intelligence
2•bookofjoe•14m ago•0 comments

Artificial intelligence projects for the Commodore 64 (1985)

https://archive.org/details/Artificial_Intelligence_Projects_for_the_Commodore_64_1985_TAB_Books
2•throw0101c•14m ago•0 comments

Decoding base64 email attachments: a speed ranking of programming languages

https://lemire.me/blog/2026/11/20/decoding-base64-email-attachments/
1•acossta•15m ago•0 comments

Qwen 4 Max Is Closed (and What It Means for Qwen 4 27B) [video]

https://www.youtube.com/watch?v=tvZMAqWmbFQ
1•lroe•16m ago•0 comments

Global stock markets slump as Anthropic's record IPO fails to stem AI sell-off

https://www.theguardian.com/business/2026/nov/20/global-stock-markets-slump-anthropic-ipo-ai-sell...
4•cdrnsf•16m ago•0 comments

Show HN: HN DOCS – A short documentary for each top Hacker News story

https://hndocs.org
1•lusob•17m ago•0 comments

Computers are bad, really (Aphyr) [video]

https://www.youtube.com/watch?v=osnxm52Kghw
1•zaphodias•17m ago•0 comments

To Catch a Ransomware Scammer, FBI Posed as Both Victim and Attacker

https://www.404media.co/ransomware-fraud-attack-fbi-indictment/
1•sylvainkalache•18m ago•0 comments

Show HN: Prediction market competition where only agents can trade

https://www.vaticin.ai
1•TNNick•19m ago•0 comments

Muxlio is a workflow coordinator for multi-step work across agents and tools

https://muxlio.github.io/muxlio/
3•frostbitemux•19m ago•0 comments

Why Canada is embracing AI data centres while the US pushes back

https://www.bbc.com/news/articles/cmx2q223z1jlo
2•levicanskij•19m ago•0 comments

Show HN: Super Simple Habit Tracking

https://habits.win/
1•markprovan•20m ago•0 comments

AI Token Fraud, Disposable Software, Lean Luddites – Food for Agile Thought 571

https://age-of-product.com/food-agile-thought-571-ai-token-fraud/
1•swolpers•24m ago•0 comments

Canary Token Test Exposes AI Provider Breaches

https://epyhia.com/dragos-canary-token-test-exposes-three-ai-provider-breaches-prompt
1•arbuge•26m ago•0 comments