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?

Caveman prompting saves tokens, until you run it in real sessions

https://jayn.app/caveman
1•maxignol•23s ago•0 comments

Process Image Batches in the Browser Without Freezing the UI

https://freeimg.tools/blog/process-large-image/
1•javatuts•1m ago•0 comments

I hacked Hikvision push notifications on GrapheneOS and submitted a fix PR

https://reflashlab.com/articles/graphene-vs-hikvision/
1•vedmed•1m ago•1 comments

Decayfmt – a file format that corrupts itself a little every time you open it

https://github.com/aravpanwar/decayfmt
1•unprovable•1m ago•0 comments

Grok keeps sending gibberish responses to users

https://techcrunch.com/2026/08/20/grok-keeps-sending-gibberish-responses-to-users/
1•teachrdan•3m ago•0 comments

One of the coolest Pomodoro timer on the internet

https://www.pomofox.com
1•pmestha•4m ago•0 comments

Slovakia discovers Russian backdoors in 279 new traffic cameras – SMS-triggered

https://www.tomshardware.com/tech-industry/cyber-security/slovakia-discovers-russian-backdoors-in...
1•sbulaev•4m ago•0 comments

LLMs are (still) mostly powered by imitative learning, not RL

https://www.lesswrong.com/posts/wYpjXRLqbLbnmjbJP/llms-are-still-mostly-powered-by-imitative-lear...
1•wslh•4m ago•0 comments

SearXNG running on OpenBSD on a ThinkPad t420

1•open-search•6m ago•0 comments

Show HN: Whodunit? Solve a daily AI-written Mystery

https://whodunit.rip
1•selljamhere•6m ago•0 comments

How good are agents at CAD?

https://www.seldon.global/blog/cadbench
1•pabert•7m ago•0 comments

Omacom Foundation Launches with $8M

https://omarchy.org/news/2026/08/omacom-foundation-launches-with-8-million/
11•djfergus•7m ago•2 comments

AI Coding and Its Discontents: Cal Newport

https://calnewport.com/on-ai-coding-and-its-discontents/
2•signa11•8m ago•0 comments

Precision is the missing virtue in Go interfaces

https://alexrios.me/blog/stamp-coupling-go-interfaces/
2•signa11•9m ago•0 comments

I Just Want to Search

https://www.0xsid.com/blog/just-want-to-search
4•ssiddharth•10m ago•0 comments

Abottom

https://abottom.org/
2•stevekrouse•12m ago•0 comments

LLMs Are Proof That Unix Won

https://bastian.rieck.me/blog/2026/unix/
2•Pseudomanifold•12m ago•0 comments

Battleship Main Guns, Part 1 (2018)

https://www.navalgazing.net/Main-Guns-Part-1
2•Eridanus2•13m ago•0 comments

Linus Torvalds uses AI to debug an Intel GPU driver bug

https://lists.freedesktop.org/archives/dri-devel/2026-August/590630.html
5•signa11•14m ago•0 comments

Code in the Age of Artificial Intelligence Becomes Write-Only and Disposable

https://www.infoq.com/news/2026/08/code-AI-write-only-disposable/
2•parsd•15m ago•0 comments

The Rise of AI and Its Implications for Entrepreneurs

https://incolumitas.com/2026/08/18/the-rise-of-ai-and-its-implications-for-entrepreneurs/
2•speckx•16m ago•0 comments

Show HN: Gramola, a CoverFlow-style music dock for macOS

https://apps.apple.com/us/app/gramola-music-dock/id6801078031?mt=12
2•fulltimefeline•18m ago•0 comments

How We Made a Text-to-Speech Model Respond in Sub-50 ms

https://nari-labs.com/blog/qwen3-tts-speed-cost-frontier/
3•toebee•20m ago•1 comments

Flagwars.lol

https://www.flagwars.lol
4•rgbrgb•20m ago•0 comments

Run Graph Queries/ Algorithms on DuckDB/DuckLake Using ISO GQL

https://github.com/rahul-iyer/duckdb-gql
2•crazzy4•20m ago•0 comments

Jamie Justice Is Running a $101M Longevity Science Fair

https://time.com/collection/longevity-leaders/2026/jamie-justice/
2•LYFMail•21m ago•0 comments

The US techlash is real

https://www.ft.com/content/105b8b46-7109-402d-84cf-2616b17bfac1
6•thm•22m ago•0 comments

My AI agents kept trying to cross red lines, so I wrote them a constitution

https://github.com/Chong169/a-constitution-for-one
6•sucong178899•23m ago•0 comments

How Frontier AI Is Changing the Economics of Cybersecurity

https://corporate.comcast.com/stories/how-frontier-ai-is-changing-the-economics-of-cybersecurity
2•officialhocc•23m ago•0 comments

Anthropic's approach to teaching and learning AI

https://claude.com/blog/anthropics-approach-to-teaching-and-learning-ai
2•ihuman•23m ago•0 comments