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?

Nancy's Thanks-Living

https://www.dgt.is/blog/2026-11-26-nancys-thanksliving/
1•jonotime•43s ago•1 comments

Show HN: Telegram image bot – 3 free AI images a day, 1 USDT = 10

https://alexchen-imgbot-sales.containers.snapdeploy.app/
1•alexchen-dev•5m ago•0 comments

How I built a global treasure hunt on hexagonal map tiles

https://needle.global/hexagons
1•jazzzooo•8m ago•1 comments

New Chinese electric brand in Australia, focused on soft-roading and off-roading

https://thedriven.io/2026/11/26/another-chinese-electric-brand-land-in-australia-this-time-focuse...
1•Alien1Being•9m ago•0 comments

The need for a formally verifiable mainstream programming language

https://blainehansen.me/post/mainstream-verifiable-language/
1•todsacerdoti•11m ago•0 comments

Show HN: AutumnDeck – Native Rust Windows 11 taskbar and widget suite

https://github.com/Shreyas123g/AutumnDeck
1•autumndeck92•13m ago•0 comments

Trump proposing new tariffs on 14 partners including EU

https://www.theguardian.com/us-news/2026/nov/25/trump-new-china-tariffs-europe
1•Alien1Being•14m ago•0 comments

Seven first-attempt tests of Seedance 2.5 Flash: timings, SSIM, and audio slips

https://vidney.ai/blog/seedance-2-5-flash-review
1•Sinaauiu•15m ago•0 comments

Secure Agentic Access to AWS with Enterprise-Managed Authorization

https://aws.amazon.com/blogs/security/secure-agentic-access-to-aws-with-enterprise-managed-author...
1•axis_official•18m ago•0 comments

Will We All Go Together When We Go?

https://quillette.com/2026/11/23/will-we-all-go-together-when-we-go-ai-alignment-scott-alexander-...
1•jaredklewis•18m ago•0 comments

The simplest way to let your users bring their own AI sub to power your AI app

https://byoa.rippling.computer/
1•_mad_eye_•18m ago•0 comments

Ask HN: Do coding harnesses not have prompt queue management features?

2•locusofself•26m ago•0 comments

Ports – names every dev server running on your machine

https://github.com/pyjeebz/ports
1•pyjeebz•27m ago•0 comments

"What's Claude's Fursona?" and Other Questions

https://herecomesthemoon.net/2026/11/whats-claudes-fursona/
13•Mond_•37m ago•0 comments

How much did proving the Riemann Hypothesis cost?

https://mun-logadan.github.io/riemann-tokens/
3•numeri•39m ago•2 comments

Ball-Lightning-Like Terahertz Solitons

https://www.researchsquare.com/article/rs-6473214/v1
1•1e1a•39m ago•0 comments

Union Vote Fails at GTA 6 Studio Rockstar Games as 75% of Devs Vote No

https://kotaku.com/rockstar-games-union-vote-fails-as-75-percent-of-devs-vote-no-2001000621
5•Danhale93•52m ago•0 comments

Paths to Extreme Power Concentration

https://newsletter.forethought.org/p/paths-extreme-power-concentration
2•gmays•1h ago•0 comments

Usaid Files: The Inclusion List the State Department Opposed

https://reclaimthenet.org/usaid-files-the-inclusion-list-the-state-department-opposed
4•latein•1h ago•0 comments

Jensen Huang Is Back, and So Is His Plaque at Denny's

https://www.nytimes.com/2026/11/26/business/dennys-jensen-huang-nvidia-plaque.html
1•reaperducer•1h ago•3 comments

HTML Renderer

https://github.com/geastack/html-renderer
1•arbayi•1h ago•0 comments

SSHFS: A network filesystem client to connect to SSH servers

https://github.com/libfuse/sshfs
1•thunderbong•1h ago•0 comments

Norse Atlantic Airways Collapses – Wages Unpaid, All Flights Canceled

https://loyaltylobby.com/2026/11/26/norse-atlantic-airways-collapses-wages-unpaid-all-flights-can...
1•lxm•1h ago•0 comments

Show HN: AshuTeacher – Free AI tutor, voice blackboard and thesis studio

https://ashuteacher.vercel.app
1•sanzayageminite•1h ago•0 comments

Ernie 5.5 Flash Preview

https://huggingface.co/baidu/ERNIE-5.5-Flash-Preview
1•Retro_Dev•1h ago•0 comments

Ansible Fails waiting for privilege escalation on Ubuntu 26

https://www.jeffgeerling.com/blog/2026/ansible-fails-become-ubuntu2604/
1•pierreneter•1h ago•0 comments

Garage v2.6.0 released with web admin, v1.x EOL and other news

https://garagehq.deuxfleurs.fr/blog/2026-11-webadmin-release/
2•pierreneter•1h ago•1 comments

Doctors, beware: AI threatens to weaken your relationships with patients

https://www.aamc.org/news/doctors-beware-ai-threatens-weaken-your-relationships-patients
3•madihaa•1h ago•1 comments

Beating Stockfish 18 in Zero- Dependency Rust with AI [pdf]

https://github.com/deedy/chess-chatarunga/blob/main/docs/paper.pdf
1•iamronaldo•1h ago•1 comments

China launches Shenzhou spacecraft carrying 2 Chinese and 1 Pakistani astronaut

https://apnews.com/article/china-space-shenzhou-24-543306bfe17419395d10fae107500564
2•Teever•1h ago•1 comments