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?

Show HN: Lathe – app, Postgres and auth on your own machine, from $15/mo

https://lathe.live/
2•evgenileonti•1m ago•0 comments

Show HN: ColliePWA, a self-hosted mobile terminal for coding agents, with alerts

https://colliepwa.dev/
2•asar•2m ago•0 comments

Dr. Lael Edwards-Costa's Interactive Billiards Demo

https://lael.dev/billiards
1•vismit2000•3m ago•0 comments

The Bishop Ring Habitat

https://en.wikipedia.org/wiki/Bishop_ring_(habitat)
1•dtj1123•4m ago•0 comments

Show HN: Presence.el Online status and simple messaging for Emacs

https://git.andros.dev/andros/presence.el
1•andros•6m ago•0 comments

Show HN: Airmash – HTML5 Multiplayer Missile Warfare

https://airma.sh/
1•fivesigma•7m ago•0 comments

Ledger – walk-forward validation toolkit for retail trading strategies

https://walkfowardvalidationtoolkit.netlify.app/
1•kyoto_fixes•8m ago•0 comments

The best piece of art ever made? Enzo Mari's Autoprogettazione

https://medium.com/@hannahparadisdesign/the-best-piece-of-art-ever-made-enzo-maris-autoprogettazi...
1•Kaibeezy•8m ago•0 comments

A window switcher that does nothing until you press Option

https://alexvestea.com/
1•avestea•8m ago•0 comments

Build an Accessible Book Reader: A Raspberry Pi Scanner That Reads Printed Books

https://www.instructables.com/Build-an-Accessible-Book-Reader-a-Raspberry-Pi-Sca/
1•rbanffy•9m ago•0 comments

Claude Found Seed-indpendent collisions in most popular hash functions

https://thomasahle.com/blog/adversarial-examples-for-hashes/
1•thomasahle•11m ago•0 comments

Amtrak: A New Era of Rail Travel Has Arrived [video]

https://www.youtube.com/watch?v=J9Zj_0U1Agg
1•bennett_dev•13m ago•0 comments

The People–OK, the Men–Who Still Love Bitcoin

https://slate.com/business/2026/09/bitcoin-cryptocurrency-masculinity-economy-emotional-tether.html
2•pseudolus•17m ago•1 comments

Why Nothing Looks Cool Anymore [video]

https://www.youtube.com/watch?v=HgjXjPP_p3s
1•Kaibeezy•21m ago•0 comments

AAA AI – Autonomous AI agent squads for local and cloud LLMs

https://aaaai.me/
1•pokidovkirill•21m ago•0 comments

King Ludd

https://www.astralcodexten.com/p/king-ludd
1•andromaton•22m ago•0 comments

Self-generated prompt injections in compaction summaries

https://simonwillison.net/2026/Sep/17/compaction-summaries/
1•hn9zmdcaou•25m ago•0 comments

Show HN: A poetry site for developers – solve a code puzzle to post

https://developerpoetry.com/
1•attels33•27m ago•0 comments

OpenSaga: Matching decompilation of the Lego Star Wars

https://opensaga.dev/
2•epestr•28m ago•0 comments

Windows turned months of inactivity into a 7-hour update hostage situation

https://www.theregister.com/os-platforms/2026/09/20/how-windows-turned-months-of-inactivity-into-...
1•beardyw•28m ago•0 comments

Turn off Apple Intelligence in macOS 27

https://discussions.apple.com/docs/DOC-250012366
2•petecooper•30m ago•1 comments

Ground Effect Vehicle

https://en.wikipedia.org/wiki/Ground-effect_vehicle
2•kekqqq•31m ago•0 comments

Security Review Scope for Daml: Coverage, Methods, and EVM Comparison

https://hacken.io/discover/daml-vs-solidity-smart-contract-audits-3-scope-decisions-for-researchers/
1•Dron_Rick•37m ago•0 comments

Auto approve pull requests with Jev

https://github.com/metalbear-co/jev-auto-approve
2•infiniteregrets•43m ago•0 comments

How ISIL is using Big Tech's AI to build bombs

https://www.aljazeera.com/news/2026/9/18/just-ask-grok-how-isil-is-using-big-techs-ai-to-build-bombs
1•smallerize•43m ago•0 comments

Migrating the GitHub Copilot Runtime to Rust, Using Copilot

https://github.blog/ai-and-ml/generative-ai/migrating-the-github-copilot-runtime-to-rust-using-co...
2•saikatsg•45m ago•0 comments

RoboHarm: Do Frontier Robot Policies Refuse Unsafe Instructions?

https://robocurve.org/roboharm/
1•fittingopposite•46m ago•0 comments

Chat-based Large Language Models replicate the mechanisms of a psychic's con

https://softwarecrisis.dev/letters/llmentalist/
6•jalev•46m ago•0 comments

An Ode to the Owl: The Inside Story of Psygnosis

https://www.timeextension.com/features/an-ode-to-the-owl-the-inside-story-of-psygnosis
3•Bluestein•47m ago•0 comments

The Millennium Problems for Biology

https://millenniumproblems.bio/
7•artninja1988•49m ago•3 comments