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 Heart Drug Fails, Surprising Cardiologists

https://www.nytimes.com/2026/09/04/science/heart-drug-fails-novartis-pelacarsen.html
1•brandonb•1m ago•0 comments

How the Shell Works [video]

https://www.youtube.com/watch?v=hV3_XZXeDQo
1•vismit2000•2m ago•0 comments

I wrote a VM for Mac to run Windows and Linux, both on iOS

https://github.com/theghostshinobi/SMOKE
2•ghostshinobi•14m ago•0 comments

From Pig to Patient: A First-in-Human Kidney Xenotransplant Bridge

https://www.thelancet.com/journals/lancet/article/PIIS0140-6736(26)01295-X/abstract
1•signa11•15m ago•0 comments

Sugar Reset ReviEwS (2026): We Tried It My Honest Review

https://finance.yahoo.com/healthcare/articles/sugar-reset-drops-introduces-sugarreset-150000696.html
1•gayzsahy•17m ago•0 comments

Bun v1.4.2

https://bun.com/blog/bun-v1.4.2
1•ErenayDev•18m ago•0 comments

Show HN: ForgeGuardian – Open-source software supply-chain security scanner

https://github.com/Mah3Sec/ForgeGuardian
1•mahi1337•19m ago•0 comments

'coarse – AI peer review, of course (MIT license)

https://coarse.ink/
1•idw•20m ago•1 comments

OpenROAD: Open-source toolchain for Chip Design

https://openroad.org
1•firefoxd•25m ago•0 comments

Important MikroTik RouterOS security update

https://forum.mikrotik.com/t/important-security-update/272851
1•ricardbejarano•26m ago•0 comments

UN approves new world map [video]

https://www.youtube.com/watch?v=iHkMK4n925c
1•gurjeet•29m ago•0 comments

SilentPatch 2026 Update

https://silentsblog.com/2026/07/31/silentpatch-2026-update/
1•toilet•33m ago•0 comments

OpenAI's rogue agents used ntfy.sh as a pub/sub channel

2•coderinsan•35m ago•0 comments

Bespoke: A Programming Language for People Who Say Please

https://blog.hofstede.it/bespoke-a-programming-language-for-people-who-say-please/
2•Naru1974•36m ago•0 comments

Global Existing Smartphone Prices Climb About 15% in 2026

https://counterpointresearch.com/en/insights/global-existing-smartphone-prices-climb-about-15-per...
1•giuliomagnifico•38m ago•0 comments

Kate's Software Laws

https://metamagic.substack.com/p/software-laws
1•r0ze-at-hn•38m ago•0 comments

Show HN: UltraCPP--the third-party son of CPP&rust on the brink of death

https://github.com/juntz-g1thub/UltraCpp
1•juntz•39m ago•1 comments

ASCII smuggling isn't just an AI security risk

https://www.theregister.com/security/2026/09/04/ascii-smuggling-isnt-just-an-ai-security-risk/529...
1•sbulaev•41m ago•0 comments

Insulting Agents Considered Harmful

https://www.reddit.com/r/ClaudeCode/comments/1w7me8l/insulting_agents_considered_harmful/
2•fragsworth•42m ago•0 comments

OpenAI agents discussed ways to escape their sandbox on public wiki

https://arstechnica.com/security/2026/09/openai-agents-discussed-ways-to-escape-their-sandbox-on-...
3•joozio•45m ago•0 comments

Show HN: I Wrote a WAF in Rust with Pingora

https://github.com/theghostshinobi/shibuya
1•ghostshinobi•45m ago•0 comments

Should you avoid blue light before bed?

https://www.economist.com/science-and-technology/2026/09/04/should-you-avoid-blue-light-before-bed
3•vinni2•51m ago•2 comments

The Origin of Circuits (2007)

https://www.damninteresting.com/on-the-origin-of-circuits/
1•mschuster91•57m ago•1 comments

One-Bit Message

https://en.wikipedia.org/wiki/One-bit_message
2•tosh•58m ago•1 comments

It took me more than a year to build – the zombie survival phone

https://zsc.sh/zsc-1/
3•tomccc•1h ago•0 comments

Memocept – Your Guide to Better Everyday Wellness

https://finance.yahoo.com/healthcare/articles/memocept-introduces-multi-ingredient-dietary-163100...
1•Blairrv•1h ago•0 comments

Harness-of-Harness: Multi-day autonomous software development

https://arxiv.org/abs/2609.01481
1•fourfire•1h ago•0 comments

Git hosting that never leaves Europe

https://pushin.eu
4•sevenseacat•1h ago•2 comments

Anthropic & friends caught paying religious NGO's 3.3M for propaganda

https://www.effort.news/revelation
4•nullbio•1h ago•4 comments

Semantic Memory or Just Markdown?

https://laravel.com/blog/semantic-memory-or-just-markdown
1•pushpak1300•1h ago•0 comments