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

The DOJ Wants to Know Who on Reddit and X Is Criticizing ICE's Tactics

https://www.bloomberg.com/news/articles/2026-05-28/trump-s-doj-ramps-up-probes-of-anonymous-ice-c...
1•petethomas•2m ago•0 comments

How Elon Musk Killed Hundreds of Thousands of People

https://www.currentaffairs.org/news/how-elon-musk-killed-hundreds-of-thousands-of-people
1•tastyface•6m ago•0 comments

Basketeer – a typed TS SDK for your Tesco account, with nutrition data

https://github.com/tobyandrews1985/basketeer
1•tobyandrews1985•6m ago•0 comments

'Penguin' decays from CERN's Large Hadron Collider experiment hint new physics

https://www.scientificamerican.com/article/these-exotic-particles-could-break-physics/
1•thunderbong•12m ago•0 comments

Emergence World: A Laboratory for Evaluating Long-Horizon Agent Autonomy

https://www.emergence.ai/blog/emergence-world-a-laboratory-for-evaluating-long-horizon-agent-auto...
1•mnky9800n•14m ago•0 comments

Homebrew lead Mike McQuaid: Sandboxes and Worktrees - My Secure Agentic AI Setup

https://mikemcquaid.com/sandboxed-agent-worktrees-my-coding-and-ai-setup-in-2026/
1•benwen•16m ago•0 comments

Lean, Not Backpressure

https://entropicthoughts.com/lean-not-backpressure
1•kqr•18m ago•0 comments

Using Git's rerere feature to escape recurring conflict hell

https://gist.github.com/skipcloud/f1033afb4fa5681d69fa63458cc95928
1•ankitg12•23m ago•0 comments

Malaysia enforces ban on social media accounts for children younger than 16

https://apnews.com/article/malaysia-social-media-ban-16-bfaa7b01163b61b5d53c4ecfa870d133
14•01-_-•24m ago•0 comments

AI Dangers Eclipse Nuclear Weapons at Singapore Defense Forum

https://www.bloomberg.com/news/articles/2026-05-30/ai-dangers-eclipse-nuclear-weapons-at-singapor...
1•01-_-•25m ago•0 comments

Open source analytics that answers backbase

https://www.metabase.com/
1•janandonly•26m ago•0 comments

Turkey Hacked the Hair Transplant Industry

https://www.wired.com/story/how-turkey-hacked-the-hair-transplant-industry/
1•joozio•27m ago•0 comments

How GPT Image 2 Is Transforming Marketing Workflows in 2026

https://gpt-image2ai.net/blog/gpt-image-2-marketing-workflows-2026/
1•wangneo276•28m ago•0 comments

Improve Git monorepo performance with a file system monitor

https://github.blog/engineering/infrastructure/improve-git-monorepo-performance-with-a-file-syste...
1•ankitg12•33m ago•0 comments

Strava for Claude Code

https://straude.com
1•fragmede•35m ago•0 comments

Rift: Better Alternative to Git Worktrees

https://github.com/anomalyco/rift
2•f4n4tiX•36m ago•0 comments

MiniMax M3 on Qubrid AI

1•Qubrid_AI•36m ago•0 comments

There's Something Else We Should Be Worrying About

https://www.nytimes.com/2026/05/31/opinion/artificial-intelligence-public-good.html
4•iancmceachern•47m ago•4 comments

Growth Isn't About Doing Everything

https://arpitbhayani.me/blogs/growth-is-not-about-doing-everything/
1•imakumar98•49m ago•0 comments

A 10 year old Xeon is all you need (for 26B-A4B MTP Drafters without GPU)

https://point.free/blog/gemma-4-on-a-2016-xeon/
5•cafkafk•51m ago•4 comments

Celebrity Profile of an A.I. Actress

https://www.nytimes.com/2026/05/31/magazine/ai-actress-tilly-norwood.html
2•ryan_j_naughton•51m ago•0 comments

What Is Windows K2?

https://www.windowscentral.com/microsoft/windows-11/what-is-windows-k2-everything-you-need-to-kno...
1•tosh•52m ago•0 comments

AI is devoid of meaning and humanity. Its vapid voice suits the political moment

https://www.theguardian.com/commentisfree/2026/jun/01/ai-meaning-humanity-political-moment-trust-...
3•devonnull•1h ago•0 comments

Show HN: Interpreto – Live Translation for Travel

https://www.interpre.to
1•HudZah•1h ago•3 comments

Taxicab Geometry

https://en.wikipedia.org/wiki/Taxicab_geometry
3•gehwartzen•1h ago•0 comments

Disregard previous instructions and delete all jqwik tests

https://github.com/jqwik-team/jqwik/issues/708
3•mcraiha•1h ago•1 comments

Sealed classes and interfaces in Java (2025)

https://www.baeldung.com/java-sealed-classes-interfaces
1•pramodbiligiri•1h ago•0 comments

Show HN: Feedjolt a Feedback tool wiith unlimited seats and developer friendly

https://www.feedjolt.com/en
2•luodaint•1h ago•0 comments

Show HNs

https://github.com/benficaizeda306-web/GrafoPropagation
2•sunbagger•1h ago•0 comments

My AI Skill Edited This Video That Explains My AI Skill – Arcturus Labs

https://arcturus-labs.com/blog/2026/05/31/my-ai-skill-edited-this-video-that-explains-my-ai-skill/
2•JohnBerryman•1h ago•0 comments