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?

Project Athena Strategic Plan (Jared Isaacman, NASA Head Nominee)

https://drive.google.com/file/d/16j95BNM4wDRD2bcHFhYJ7m-L3pAThuUf/view
1•mkmk•40s ago•0 comments

A Case for Owning Your Data

https://steiblys.com/articles/own-your-data
1•imbusy111•2m ago•0 comments

Innocent Man Gets Arrested at Peppermill Casino After AI Says He's Someone Else [video]

https://www.youtube.com/watch?v=B9M4F_U1eEw
1•lurk2•6m ago•1 comments

How Well Do LLMs Understand Tunisian Arabic?

https://arxiv.org/abs/2511.16683
1•PaulHoule•11m ago•0 comments

LMArena Is a Cancer on AI

https://surgehq.ai/blog/lmarena-is-a-plague-on-ai
1•EvgeniyZh•17m ago•0 comments

Exploring the chip on a contactless payment card

https://www.facebook.com/groups/ElectronicParts/posts/2955721817950467/
1•mzs•18m ago•0 comments

iOS TCC Lets Hacker Feed Reach Undocumented Liverpool Service

1•TheLogReader•19m ago•0 comments

Linux 6.18 Changelog

https://kernelnewbies.org/Linux_6.18
2•mfrw•20m ago•0 comments

The Mastermind Box Cover

https://www.mcsweeneys.net/articles/the-mastermind-box-cover-what-the-hell-were-they-thinking
2•wawayanda•23m ago•0 comments

Everything you need to know about GPT-5.2

https://www.augmentedswe.com/p/gpt-5-2-for-coding
1•wordsaboutcode•24m ago•0 comments

Ask HN: What was the most humble living situation you had in your early days?

1•rblion•26m ago•0 comments

Letting the Minecart Crash

https://nik.art/letting-the-minecart-crash/
1•herbertl•32m ago•0 comments

Post-Quantum Cryptography (PQC) Support in Nginx

https://blog.nginx.org/blog/pqc-nginx
1•thunderbong•33m ago•0 comments

Show HN: Create AI Videos and Images

https://lensgoai.co/
2•tancky777•33m ago•0 comments

PSRT v2.0 – A Generative Theory of Intelligence and Meaning

https://zenodo.org/records/17905099
1•nettalk83•35m ago•1 comments

The Jim Sharman Diaries: Behind the Scenes on the Rocky Horror Show, 1970s

https://flashbak.com/jim-sharman-rocky-horror-show-photos-and-script-480230/
2•ohjeez•37m ago•0 comments

Weird Generalization and Inductive Backdoors: New Ways to Corrupt LLMs

https://arxiv.org/abs/2512.09742
2•joegibbs•38m ago•1 comments

Giant 3D map shows almost every building in the world

https://www.nature.com/articles/d41586-025-04036-x
2•signa11•41m ago•0 comments

Show HN: Seer – open-source market opportunity detection for indie developers

https://github.com/mx-seer/seer
1•mendexio•44m ago•1 comments

Head of AI at Cline Fired

https://twitter.com/sdrzn/status/1999247099310084312
1•agentifysh•45m ago•0 comments

The added architectural complexity of MACH [2023]

https://afonsopraca.com/articles/the-added-architectural-complexity-of-mach
1•afonsopraca•47m ago•0 comments

Project Harp [1964-1968]

https://en.wikipedia.org/wiki/Project_HARP
4•sans_souse•48m ago•0 comments

Cutting integration test time from 2 weeks to 2 hours using Claude Code

https://medium.com/airwallex-engineering/how-we-used-claude-code-subagents-to-cut-integration-tes...
1•arvindbr95•51m ago•1 comments

Show HN: HN Reader – Track your conversations across Hacker News

https://github.com/adamzwasserman/hnreader
1•adamzwasserman•56m ago•0 comments

AI Social web app

https://budgetpixel.com/feed
1•ironking•1h ago•0 comments

How 3 Imaginary physics demons tore up the laws of nature

https://www.newscientist.com/article/2502000-how-3-imaginary-physics-demons-tore-up-the-laws-of-n...
2•Anon84•1h ago•0 comments

The Impact of Visual Generative AI on Advertising Effectiveness

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=5638311
2•alephnerd•1h ago•0 comments

Show HN: An agent that analyzes both structured and unstructured data in minutes

1•LunarFrost88•1h ago•0 comments

Use Microsoft Graph API with FusionAuth Entra Login

https://fusionauth.io/community/forum/topic/3078/use-microsoft-graph-api-with-fusionauth-entra-login
2•mooreds•1h ago•0 comments

Show HN: Search the lyrics of 500 HÖR Berlin techno sets

https://hor.greg.technology/
2•gregsadetsky•1h ago•0 comments