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: Turn SSH X11 Forward to WebSocket – remote apps flow to you workstation

1•kbradero•44s ago•0 comments

Google Chrome Arrives on ARM64 Linux, Widevine DRM Included

https://www.omgubuntu.co.uk/2026/07/chrome-arm64-linux-available
1•twapi•5m ago•0 comments

Codex ported Age of Empires II to the browser

https://twitter.com/ryanshahine/status/2081697787683487882
1•ryanshahine•5m ago•0 comments

Show HN: A Graveyard of Startups

https://startupgrave.vercel.app
1•hito20•7m ago•0 comments

Commercial AI APIs Blocked Hugging Face's Forensic Analysis

https://www.vincentschmalbach.com/commercial-ai-apis-blocked-hugging-face-forensic-analysis/
1•vincent_s•7m ago•0 comments

Understanding the Linux Kernel: The VFS

https://internals-for-interns.com/posts/linux-kernel-vfs/
1•valyala•8m ago•0 comments

Comparing the Italian and Danish Music Industries

https://www.michelecoscia.com/?p=2562
1•mikk14•9m ago•0 comments

RavynOS: An early-stage (pre-alpha) open-source operating system based on Darwin

https://ravynos.com/
1•arm•11m ago•0 comments

How is the Bun Rewrite in Rust going?

https://lockwood.dev/ai/2026/07/27/how-is-the-bun-rewrite-in-rust-going.html
2•tomlockwood•12m ago•0 comments

Make Reviews Possible Again with This One Simple Trick

https://silky.github.io/posts/reviews-one-simple-trick.html
1•signa11•12m ago•0 comments

Ask HN: What do you use to monitor cron jobs and queue workers?

3•HarunRRayhan•15m ago•0 comments

One Leading Dash Turned Tailscale SSH Access into a Root Session

https://www.vincentschmalbach.com/tailscale-ssh-leading-dash-root/
2•vincent_s•17m ago•0 comments

Ukraine's Kill Zone

https://www.reuters.com/graphics/UKRAINE-CRISIS/KILL-ZONE/znpnojmknvl/
2•stared•22m ago•0 comments

Free engagement-rate calculator for creators and brands

https://collabios.com/en/tools/engagement-rate-calculator
1•ghassendaoud•22m ago•0 comments

Show HN: Release-gate – a CLI that checks AI-agent PRs for risky changes

1•VamsiSudhakaran•23m ago•0 comments

Donald Trump's AI Brain Trust

https://www.wired.com/story/this-is-donald-trumps-ai-brain-trust/
1•joozio•23m ago•0 comments

A quantum heat engine that simultaneously provides work and refrigeration

https://phys.org/news/2026-07-quantum-simultaneously-refrigeration.html
1•pseudolus•23m ago•0 comments

UX-Context Design: The future of UX design and user research?

https://www.nngroup.com/articles/ux-context-design/
2•TonyAlicea10•24m ago•0 comments

The Ukrainian startup taking the missile fight deep into Russia

https://www.theguardian.com/world/2026/jul/27/fire-point-ukraine-cruise-missiles-russia
2•Anon84•25m ago•0 comments

The Birth of the American 12-string Guitar

https://www.harpguitars.net/history/grunewald/12-string.htm
6•bilegeek•32m ago•0 comments

Show HN: Horus-runtime – High Performance Computing workflow manager

https://github.com/temple-compute/horus-runtime
2•chdominguez•33m ago•0 comments

America Stopped Reading

https://ilummi.app/how-america-stopped-reading
1•anttonio•35m ago•2 comments

OpenAI is shutting down Atlas

https://techcrunch.com/2026/07/09/openai-is-shutting-down-atlas-but-its-ai-browser-ambitions-are-...
2•quadrige•35m ago•2 comments

Build a Basic AI Agent from Scratch: Security III

https://www.ruxu.dev/articles/ai/build-an-ai-agent-security-3/
2•ruxudev•36m ago•0 comments

Show HN: Dozenal – A Game of Spatial Arithmetic

https://dozenal.game
7•sarreph•40m ago•1 comments

Ask HN: Why is every company encorporating AI everywhere?

6•vanessa1211•45m ago•3 comments

If digital computers are conscious, they are conscious at the hardware level

https://smoothbrains.net/posts/2026-05-09-digital-consciousness.html
2•eatitraw•51m ago•0 comments

How to Run an Autonomous Agent Against Your Own Server

https://medium.com/@vektormemory/how-to-run-an-autonomous-agent-against-your-own-server-3ff9335ba69f
2•vektormemory•52m ago•1 comments

A preferred way to design tools for AI agents

https://www.bolshchikov.com/p/your-agent-isnt-dumb-your-tools-are
2•bolshchikov•52m ago•0 comments

Show HN: Spsc-ring-threadsafe Python C ext. 100x faster as multiprocessing.Queue

https://github.com/eliasdejong/spsc-ring-threadsafe
1•eliasdejong•56m ago•0 comments