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?

Adverse childhood experiences and risk of mental disorders: A systematic review

https://www.sciencedirect.com/science/article/pii/S0001691826007559
1•rendx•6m ago•0 comments

The Digital Maieutic: Socrates and the Art of Prompting

https://forum.effectivealtruism.org/posts/qsG9LwjD9ZAERiTFc/the-digital-maieutic-socrates-and-the...
1•rramadass•7m ago•0 comments

Hydrogen and oxygen make water [video]

https://www.youtube.com/watch?v=UV8KbQyF228
1•tripdout•16m ago•0 comments

Scaling Laws Meet Model Architecture: Toward Inference-Efficient LLMs

https://arxiv.org/abs/2510.18245
1•matt_d•17m ago•0 comments

Show HN: Live, system-wide USB transfer sniffer in eBPF

https://github.com/yeet-src/usbsnoop
2•r3tr0•18m ago•0 comments

E-Scooter Rider and Cyclist Are Killed in Head-On Crash on NYC Bridge

https://www.nytimes.com/2026/05/28/nyregion/queensboro-bridge-nyc-bike-scooter-crash-deaths.html
1•ChrisArchitect•21m ago•0 comments

The One Terminal you will need

https://github.com/8868derek/oneterminal
1•DerekFan•25m 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
10•RobLach•26m ago•0 comments

Dating apps were never built to deliver you to anyone

https://pilgrimsage.substack.com/p/the-two-doors
1•momentmaker•34m ago•1 comments

Show HN: OWASP Agent Memory Guard – Stop AI Agent Memory Poisoning

https://github.com/OWASP/www-project-agent-memory-guard
1•vgudur297•42m ago•0 comments

Please Do Not Vibe Fuck Up This Software – Rsync

https://github.com/RsyncProject/rsync/issues/929
15•justdotJS•42m ago•7 comments

The Home-Insurance Coin Flip: Nearly Half of Claims Result in Zero Payout

https://www.wsj.com/finance/the-home-insurance-coin-flip-nearly-half-of-claims-result-in-zero-pay...
3•JumpCrisscross•43m ago•0 comments

Local-first, single-binary chaos engineering CLI for indie devs

https://github.com/1999labs/antics
1•knownquantity_•43m ago•0 comments

America Has a Pangram Problem

https://www.theatlantic.com/technology/2026/05/pangram-ai-detection-accuracy/687381/
1•paulpauper•45m ago•1 comments

The Feeling of Control Slipping Away

https://www.theatlantic.com/technology/2026/05/ai-agents-agency-crisis-humanity/687379/
2•paulpauper•45m ago•1 comments

80k Hours: The Book

https://marginalrevolution.com/marginalrevolution/2026/05/80000-hours-the-book.html
1•paulpauper•46m ago•0 comments

Chinese Actors' Impersonation and Stolen Narratives in Digital Repression

https://citizenlab.ca/research/how-chinese-actors-use-impersonation-and-stolen-narratives-to-perp...
2•WaitWaitWha•55m ago•0 comments

The radical network redesign that led AWS to forge a more resilient cloud

https://www.aboutamazon.com/stories/aws-random-graph-theory-data-center-network-design
2•tanelpoder•59m ago•0 comments

How to Build a Shitty Robot

https://mariozechner.at/posts/2026-05-30-shitty-robot/
1•zdw•1h ago•1 comments

What Distinguishes the Super Rich from the Rest of Us

https://knowledge.insead.edu/leadership-organisations/what-distinguishes-super-rich-rest-us
1•makerdiety•1h ago•2 comments

Sonny Rollins – Saxophone Colossus (documentary)(1986)

https://www.youtube.com/watch?v=q1U37Ohmjh8
2•brudgers•1h ago•0 comments

Trying to find some good spots to invest in Bangalore, India

https://flatmap.cloud
1•midhunharikumar•1h ago•1 comments

Geblang – static typed, interpreted language written in Go

https://github.com/dwgebler/geblang
3•dwgebler•1h ago•0 comments

CompletionKit – stop guessing whether your prompt change helped

https://completionkit.com/
4•braaap•1h ago•0 comments

Dealing with cancel safety in async Rust

https://rfd.shared.oxide.computer/rfd/0400
3•rrampage•1h ago•0 comments

Ask HN: What are your worst war stories bringing agentic applications into prod

3•yaoke259•1h ago•0 comments

Litterbox – Somewhat Isolated Development Environments

https://github.com/Gerharddc/litterbox
2•indigodaddy•1h ago•0 comments

The household battery revolution that could change energy bills and the world

https://www.theguardian.com/environment/ng-interactive/2026/may/31/cheaper-energy-bills-battery-r...
3•nl•1h ago•0 comments

Lotus Focus 2030: Reinforcing brand DNA with hybrid-V8 supercar

https://www.lotuscars.com/en/press/news/lotus-unveils-focus-2030
2•gnabgib•1h ago•0 comments

Muxcard, a dyi credit card size computer

https://github.com/krauseler/muxcard
4•sargstuff•2h ago•1 comments