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?

Harness Training

https://www.henrypan.com/blog/2026-07-18-harness-training/
1•contextweaver•1m ago•0 comments

Radio and Movies in the 1930s

https://arnoldkling.substack.com/p/radio-and-movies-in-the-1930s
1•paulpauper•2m ago•0 comments

Mill, Hayek, and Liberalism

https://casssunstein.substack.com/p/mill-hayek-and-liberalism
1•paulpauper•3m ago•0 comments

Economic Growth Makes Graceland Less Impressive

https://thedailyeconomy.org/article/economic-growth-makes-graceland-less-impressive/
1•paulpauper•6m ago•1 comments

Vast.ai Benchmarking – Detect/Log Garbage Servers

https://github.com/drivelineresearch/vast-benchmarking
1•icelancer•9m ago•0 comments

We're trying to get 1M people to pay $1 and it's working

https://wemillion.world
1•felixthiollier•9m ago•3 comments

The WWI Plan to Turn America's Trees into Telephones

https://www.atlasobscura.com/articles/the-world-war-i-plan-to-turn-americas-trees-into-telephones
1•ohjeez•10m ago•0 comments

Yahoo, the internet's 'OG', wants to win over Gen Z

https://www.ft.com/content/50c666af-1979-4411-9d62-34e18cc0ecc9
2•thm•11m ago•0 comments

Say It Four Times (In Your System Prompt)

https://www.khola.blog/p/say-it-four-times
2•nkhola•11m ago•0 comments

A Deep Dive into Hallucinated Citations: DeepMind Paper Edition

https://veruscite.com/blog/deepmind-hallucinated-citations
1•apwheele•12m ago•0 comments

The silence that reads as safety

https://zaferbalkan.com/silence/
1•feldrim•14m ago•0 comments

Cryptographic provenance for AI agents from action capture to audit reports

https://github.com/Providex-AI/rootsign
1•oabolade•16m ago•1 comments

Dinkus Markdown Studio

https://dinkus.textualize.io/
1•willm•19m ago•0 comments

Sam Altman on Building OpenAI [video]

https://www.youtube.com/watch?v=kG8AoExkX40
1•tosh•20m ago•0 comments

The Vibe Tax

https://insufferable.dev/posts/vibe-tax/
1•allisdust•21m ago•0 comments

Jeju Air crash: bureaucratic timeline on how the concrete embankment came to be

https://simpleflying.com/deadly-design-decision-responsible-jeju-air-disaster/
1•xeonmc•24m ago•0 comments

Etched Sohu vs. Nvidia: Transformer ASIC vs. GPU (2026) – Spheron Blog

https://www.spheron.network/blog/etched-ai-sohu-vs-nvidia-transformer-asic-inference/
1•rbanffy•25m ago•0 comments

The Forever Library – The Traces

https://thetraces.substack.com/p/the-forever-library
1•feldrim•28m ago•0 comments

Vallley – Live startup jobs around the world

https://vallley.xyz
1•0x4269•28m ago•1 comments

I Sent Facebook a DMCA Takedown Letter – and It Worked [video]

https://www.youtube.com/shorts/lxb1RXZpQ7E
3•fortran77•32m ago•1 comments

Anthropic's best AI model struggles to attract users as cheaper tools thrive

https://www.ft.com/content/5ee49718-c258-4f01-aa32-7e5b76ae5245
4•naves•36m ago•1 comments

My Obituary for Dr Tim King, Tripos, AmigaOS, Helios and UK Online Pioneer

https://www.theregister.com/software/2026/08/18/tim-king-amigados-royalty-dies-aged-70/5289101
4•lproven•39m ago•0 comments

Show HN: Afterlid, guarded lid closed work for macOS

https://afterlid.com/
1•rjsajnani•41m ago•0 comments

Show HN: Civic Nightmare –Browser JRPG about a citizen in a savage civilization

https://github.com/Daniele-Cangi/civic-nightmare
1•DanieleCangi•42m ago•0 comments

Elder fraud scheme that allegedly moved millions through dummy Florida companies

https://www.courtwatch.news/p/the-rabbit-hole-targeting-seniors
1•speckx•42m ago•0 comments

Yuval Noah Harari on the economic and political perils of AI

https://www.economist.com/business/2026/08/20/yuval-noah-harari-on-the-economic-and-political-per...
3•andsoitis•43m ago•0 comments

AI and Infrastructure Engineering

https://omegion.dev/2026/08/ai-and-infrastructure-engineering/
1•0megion•43m ago•0 comments

Explain it to me like I'm ten

https://timharford.com/2026/08/explain-it-to-me-like-im-ten/
3•bookofjoe•44m ago•0 comments

Developer's Open Source Tool Strips Anthropic's New Claude Watermark

https://startupfortune.com/a-paris-developers-open-source-tool-already-strips-anthropics-new-clau...
2•speckx•44m ago•0 comments

The quiet tycoons powering Africa's rise

https://www.economist.com/middle-east-and-africa/2026/08/23/the-quiet-tycoons-powering-africas-rise
1•andsoitis•45m ago•0 comments