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

Europeans Can Turn 2 Car Seats into 4 Child Seats, but It's Illegal in America

https://www.theautopian.com/why-europeans-can-convert-two-car-seats-into-four-child-seats-but-its...
1•josephcsible•19s ago•0 comments

Need Feedback for Idea

1•molozey•1m ago•0 comments

"People are going to stop and ask you, 'How can I help?' Let them."

https://www.npr.org/2026/01/20/nx-s1-5683170/let-them-the-small-bit-of-advice-that-made-a-big-dif...
1•NaOH•6m ago•0 comments

NASA about to send people to the moon – in a spacecraft not everyone thinks safe

https://www.cnn.com/2026/01/23/science/artemis-2-orion-capsule-heat-shield
1•everybodyknows•10m ago•0 comments

Have We Been Wrong About Language for 70 Years? New Study Challenges Theory

https://scitechdaily.com/have-we-been-wrong-about-language-for-70-years-new-study-challenges-long...
1•mikhael•14m ago•0 comments

Health insurance execs shift blame for costly, confusing health care system

https://www.statnews.com/2026/01/22/health-insurance-execs-blame-high-costs-hospitals-doctors-pha...
2•brandonb•23m ago•0 comments

Get Shit Done

https://github.com/glittercowboy/get-shit-done
1•davidkimai•26m ago•0 comments

Fuggerei

https://www.fugger.de/en/fuggerei
1•thunderbong•26m ago•0 comments

Ask HN: How are you enforcing permissions for AI agent tool calls in production?

1•amjadfatmi1•27m ago•0 comments

Caroline Ellison Former Alameda CEO Released from Prison After 440 Days

https://www.sec.gov/enforcement-litigation/litigation-releases/lr-26450
11•sizzle•27m ago•0 comments

The Epic Survey of Mason and Dixon

https://www.nspe.org/career-growth/pe-magazine/march-2014/the-epic-survey-mason-dixon
1•MrBuddyCasino•28m ago•0 comments

Everybody's at each other's throats': James Cameron left the US permanently

https://www.theguardian.com/film/2026/jan/23/james-cameron-left-the-us-permanently-covid-new-zealand
10•teleforce•31m ago•1 comments

Agency Recruiters can sell retained searches

https://talnet.co/posts/how-agency-recruiters-can-sell-retained-searches-20260242311174
1•bouia•34m ago•0 comments

Turn any developer into a low performer

https://pipify.lovable.app/
1•thedeep_mind•36m ago•1 comments

Agents.md as a Dark Signal

https://joshmock.com/post/2026-agents-md-as-a-dark-signal/
1•vinhnx•38m ago•0 comments

December in Servo

https://servo.org/blog/2026/01/23/december-in-servo/
1•todsacerdoti•38m ago•0 comments

Ditching Flickr for Immich, Protecting My Kids

https://ericcaron.com/securing-memories-upgrading-privacy/
1•ecaron•38m ago•0 comments

A new direction for students in an AI world: Prosper, prepare, protect

https://www.brookings.edu/articles/a-new-direction-for-students-in-an-ai-world-prosper-prepare-pr...
1•gmays•42m ago•0 comments

AI can 10x developers in creating tech debt

https://stackoverflow.blog/2026/01/23/ai-can-10x-developers-in-creating-tech-debt/
4•thebeardisred•46m ago•2 comments

Why a God Can't Play a Link to the Past [video]

https://www.youtube.com/watch?v=nQ6e2_QKnmg
1•todsacerdoti•46m ago•0 comments

Show HN: A simple algorithm for shifting solid-color image backgrounds (WASM)

https://github.com/ufoym/bgcolor-shift
4•ufoym•54m ago•0 comments

Customer growth is slow. Who do I talk to?

1•alance•56m ago•2 comments

The End of Discovery?

https://write.as/thoughts-on-nanofactories/the-end-of-discovery
1•soundworlds•59m ago•0 comments

Show HN: Flux, A Python-like language in Rust to solve ML orchestration overhead

https://github.com/cmc-labo/flux
1•hpscript•1h ago•1 comments

Python's `json.tool` Utility

https://docs.python.org/3/library/json.html
1•dvrp•1h ago•0 comments

AI agent generates rebuttals for papers

https://arxiv.org/abs/2601.14171
1•meander_water•1h ago•0 comments

Claude Code TeamateTool (binary analysis)

https://gist.github.com/kieranklaassen/d2b35569be2c7f1412c64861a219d51f
1•dnw•1h ago•1 comments

Shelley: A Coding Agent

https://github.com/boldsoftware/shelley
1•luu•1h ago•0 comments

Visualizing K-Way Merge: An Interactive Guide to Database Sorting

http://justinhj.github.io/2026/01/19/visualizing-k-way-merge.html
1•todsacerdoti•1h ago•0 comments

Ask HN: Why is the Lua web / related ecosystem so stagnant?

1•jmspring•1h ago•0 comments