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•10mo 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•10mo 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?

ZX Spectrum Basic controls a lunar lander in Kerbal Space Program [video]

https://www.youtube.com/watch?v=XQTh1Davsj8
1•nopakos•49s ago•0 comments

When the city becomes the weapon: IoT, AI, and the new face of warfare

https://andreafortuna.org/2026/03/21/when-the-city-becomes-the-weapon
1•fbistrash•2m ago•0 comments

Do Not Turn Child Protection into Internet Access Control

https://news.dyne.org/child-protection-is-not-access-control/
1•smartmic•2m ago•0 comments

Why Building Mega Clusters Is Wrong

https://fireworks.ai/blog/why-building-mega-clusters-is-wrong
1•smurda•4m ago•0 comments

A curated list of open-source projects and resources for the OpenClaw ecosystem

https://github.com/SebConejo/awesome-openclaw-resources
1•stosssik•6m ago•0 comments

Nash Burns Saves the Day

https://www.tbray.org/ongoing/When/202x/2026/03/20/Nash-Burns
1•AndrewDucker•7m ago•0 comments

Modern Family Star Nolan Gould, 14, on Mensa and Starting College Early (2013) [video]

https://www.youtube.com/watch?v=ZOTtGItg2PI
1•joebig•14m ago•0 comments

Bead Sort (Gravity Sort)

https://en.wikipedia.org/wiki/Bead_sort
3•ogogmad•15m ago•0 comments

Apifold – OpenAPI spec in, live MCP server out

https://github.com/Work90210/APIFold
2•KyleFuehri•20m ago•0 comments

I Predicted the 2008 Financial Crisis. What Is Coming May Be Worse

https://www.nytimes.com/2026/03/16/opinion/financial-crisis-private-credit-ai-iran-taiwan.html
2•saikatsg•24m ago•1 comments

Intel GMA 945, Nvidia 8800 GTS, AMD Radeon HD 7350G All Working with ReactOS Now

https://twitter.com/reactos/status/2031439000708202743
1•smurda•25m ago•0 comments

Tinybox- offline AI device 120B parameters

https://tinygrad.org/#tinybox
42•albelfio•26m ago•13 comments

The Ghost in Your Shell

https://github.com/DeepBlueDynamics/hyperia
1•kordlessagain•26m ago•1 comments

Kagi: Small Web Just Got Bigger

https://blog.kagi.com/small-web-updates
2•gxs•27m ago•0 comments

No evidence cannabis helps anxiety, depression, or PTSD

https://www.sciencedaily.com/releases/2026/03/260319044656.htm
2•nothrowaways•29m ago•0 comments

Common Lisp Development Tooling

https://www.creativetension.co/posts/common-lisp-development-tooling
2•0bytematt•31m ago•0 comments

Show HN: vLLM Studio – A macOS app for using vLLM models

https://github.com/agentset-ai/vllm-studio
2•ahmedriad1•31m ago•3 comments

Hawaii's worst flooding in 20 years threatens dam, prompts evacuations

https://www.nbcnews.com/weather/floods/hawaii-worst-flooding-in-20-years-rcna264573
5•geox•39m ago•0 comments

Trying out creating simple and fun games. What do you think?

https://samreedcole.com/about/
2•samreedcole•49m ago•1 comments

Bilderberg Meeting

https://en.wikipedia.org/wiki/Bilderberg_Meeting
2•simonebrunozzi•52m ago•0 comments

6 Facts about obesity and weight loss drugs in the U.S.

https://www.pewresearch.org/short-reads/2026/01/23/6-facts-about-obesity-and-weight-loss-drugs-in...
3•paulpauper•55m ago•0 comments

Be a Sadist

https://twitter.com/robkhenderson/status/2035433329281945974
2•delichon•56m ago•0 comments

The Distaff Texts

https://www.lesswrong.com/posts/pKoDqpfdv4ur8HgZ2/the-distaff-texts
1•paulpauper•57m ago•0 comments

Show HN: Atomic – self-hosted, semantically-connected personal knowledge base

https://github.com/kenforthewin/atomic
4•kenforthewin•1h ago•0 comments

Show HN: Can I run a model language on a PS2?

https://github.com/xaskasdf/ps2-llm
4•xaskasdf•1h ago•2 comments

Just In Time compilation in WebAssembly (2022)

https://www.wingolog.org/archives/2022/08/18/just-in-time-code-generation-within-webassembly
2•QuadmasterXLII•1h ago•1 comments

Is AI capable of Intelligent Disobedience? [video]

https://www.youtube.com/watch?v=Qu-00j9XuF0
1•Yukonv•1h ago•0 comments

Is 'Vibe Physics' the Future?

https://physicsworld.com/a/is-vibe-physics-the-future/
4•01-_-•1h ago•1 comments

Nvidia Open-Sources OpenShell: Agent Runtime with Security Guardrails

https://nvidianews.nvidia.com/news/ai-agents
5•jee599•1h ago•2 comments

For the First Time, Scientists May Have Found a Way to Regenerate Cartilage

https://www.inc.com/victoria-salves/for-the-first-time-scientists-may-have-found-a-way-to-regener...
2•01-_-•1h ago•0 comments