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?

Ruflo: An agent meta-harness for Claude Code and Codex

https://github.com/ruvnet/ruflo
1•ms7892•1m ago•0 comments

Fedora 45 Atomic Desktops Look to Allow for Web-Based Remote Installations

https://www.phoronix.com/news/Fedora-45-Atomic-Remote-Install
1•nateb2022•3m ago•0 comments

Show HN: Awsmux – Multi-account AWS CLI, up to 5.4x faster, 7.4x fewer tokens

https://github.com/0hardik1/awsmux
2•0hardik1•4m ago•0 comments

Have your say on advancing AI transparency in Canada

https://ised-isde.canada.ca/site/ised/en/have-your-say-advancing-ai-transparency-canada
1•hmokiguess•6m ago•0 comments

Ask HN: What are some popular AI detection software?

1•dd-sharma•9m ago•1 comments

NVLink, NVSwitch, and All That

https://blog.doubleword.ai/nvlink-scale-up
1•matt_d•9m ago•0 comments

How are you authorizing AI agents that call MCP servers?

https://www.keydris.com/
2•ahmed89•15m ago•0 comments

JetBrains Is Sunsetting Kotlin Notebook – What It Means for Kotlin Developers

https://medium.com/@muhamadsyafii4/jetbrains-is-sunsetting-kotlin-notebook-what-it-means-for-kotl...
3•sorokod•19m ago•0 comments

Show HN: Open-source AI bookmark manager for busy people

https://github.com/rortan134/cache-app
1•gsmt•22m ago•1 comments

'Shameful': Pentagon accused of cover-up over US Military casualties in Iran war

https://www.theguardian.com/us-news/ng-interactive/2026/jul/25/pentagon-iran-war-casualties-cover-up
3•hebelehubele•23m ago•0 comments

America Is About to Go over a Peptide Cliff

https://www.theatlantic.com/health/2026/07/peptide-bpc157-fda-compounding-pharmacy/688052/
2•paulpauper•24m ago•1 comments

When Middle Age Starts

https://www.theatlantic.com/family/2026/07/middle-age-start-end/688021/
2•paulpauper•24m ago•0 comments

I Tried Coding My Own Graphics Library

https://www.youtube.com/watch?v=_JGMgpyCTsY
1•birdculture•25m ago•0 comments

You Cannot Escape the Details

https://davidnicholaswilliams.com/you-cannot-escape-the-details/
1•davnicwil•25m ago•0 comments

General Resolution: LLM Usage in Debian

https://www.debian.org/vote/2026/vote_002
2•zdw•29m ago•0 comments

The Next Ten Billion Years (2013)

https://www.resilience.org/stories/2013-09-05/the-next-ten-billion-years/
1•simonebrunozzi•29m ago•0 comments

Show HN: Proxmox -> Share your host's Bluetooth with a VM over the network

https://github.com/lucid-fabrics/proxmox-bluetooth
10•wmehanna•32m ago•0 comments

Show HN: I created a way to turn your GitHub contribution graph into a game

https://ykdojo.github.io/gh-commit-history/
1•ykev•34m ago•1 comments

Show HN: Minesweeper Raycasted

https://claude.ai/public/artifacts/725f961b-09dc-4a66-8dac-8fefeeb69a1f
1•franze•34m ago•0 comments

Agent's Personality Tax: Stop Re‑Buying Your Agent's Context

https://tanishq.xyz/engineering/agent-personality-tax
1•tanishqxyz•34m ago•1 comments

Show HN: Tasku. Manage Tasks from the Terminal

https://github.com/tomdringer/tasku
1•nerimasoft•35m ago•0 comments

Car Hacking and Vulnerability Reporting in 2026

https://www.hakstuff.net/blog/car-hacking-and-vulnerability-reporting-in-2026
1•simonebrunozzi•38m ago•1 comments

Producing ammonia and fertiliser using wind power in Morris, Minnesota

https://ammoniaenergy.org/articles/flexible-renewable-ammonia-demonstrator-now-operational-in-min...
21•gritzko•43m ago•2 comments

NanoPutians, organic molecules whose structural formulae resemble human forms

https://en.wikipedia.org/wiki/NanoPutian
3•okl•43m ago•0 comments

Tokokino

https://tokokino.com
1•handfuloflight•44m ago•0 comments

Geohash

https://en.wikipedia.org/wiki/Geohash
2•colinprince•46m ago•0 comments

Show HN: HN Glance – a visual way to read Hacker News

https://hnglance.com
2•valentinvieriu•48m ago•0 comments

Dutch–American Friendship Treaty

https://en.wikipedia.org/wiki/Dutch%E2%80%93American_Friendship_Treaty
1•TechTechTech•59m ago•0 comments

Show HN: Pastport – Your iPhone Left an Airbnb

https://github.com/anupamchugh/pastport
2•anupamchugh•1h ago•0 comments

What is agency – and how can you get more of it?

https://www.natesilver.net/p/what-is-agency-and-how-can-you-get
2•7777777phil•1h ago•0 comments