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?

Instrumenting Rails with OpenTelemetry

https://markprovan.com/posts/instrumenting-rails-with-opentelemetry/
1•markprovan•36s ago•0 comments

Polar weather on Jupiter and Saturn hints at the planets' interior details

https://news.mit.edu/2026/polar-weather-jupiter-saturn-hints-planets-interior-details-0119
1•gmays•1m ago•0 comments

Liquidity Boasting with LandDAO

1•BradK•1m ago•0 comments

The Quiet Power of Reflective Games

https://thereader.mitpress.mit.edu/the-quiet-power-of-reflective-games/
1•anarbadalov•1m ago•0 comments

The Linguistic Registers of Rust

https://without.boats/blog/the-registers-of-rust/
1•fanf2•2m ago•0 comments

The BBN Fund

https://www.freaktakes.com/p/the-bbn-fund
1•rbanffy•2m ago•0 comments

LandDAO Revolution

1•BradK•4m ago•0 comments

Many Plants – Indoor and House Plant Resource

https://howmanyplants.com/
1•surprisetalk•4m ago•0 comments

Banks' Images: Evidence from Advertising Videos

https://marginalrevolution.com/marginalrevolution/2025/09/banks-images-evidence-from-advertising-...
1•surprisetalk•4m ago•0 comments

Old Maps of the World

https://www.oldmapsonline.org/en
1•surprisetalk•4m ago•0 comments

To cook well, train your Inner Flavor Simulator

https://aelerinya.substack.com/p/to-cook-well-train-your-inner-flavor
1•surprisetalk•4m ago•0 comments

Show HN: Mark edits on images, then send them to AI

https://promptsref.com/tool/AI-Image-Editor
1•underwoodxie•4m ago•0 comments

Kioxia's memory is sold out for 2026, prolonging a high-end and expensive phase

https://arstechnica.com/gadgets/2026/01/kioxias-memory-is-sold-out-for-2026-prolonging-a-high-end...
1•speckx•4m ago•0 comments

Risk of agentic AI going mainstream – infecting infrastructures via skills

https://blog.lukaszolejnik.com/supply-chain-risk-of-agentic-ai-infecting-infrastructures-via-skil...
1•lknik•4m ago•0 comments

Tell HN: Claudi.ai Is Down

1•exabrial•5m ago•1 comments

Tech Workers Are Condemning ICE Even as Their CEOs Stay Quiet

https://www.wired.com/story/backlash-against-ice-policing-tactics-grows-in-silicon-valley/
1•cdrnsf•5m ago•1 comments

Show HN: Borr AI – An open-source telemetry for retail

https://www.borr.ai
1•matthewduff•5m ago•0 comments

Probabilistic Margin of Safety Implementation

https://bayramovanar.substack.com/p/probabilistic-margin-of-safety-engine
1•Bayramovanar•7m ago•1 comments

Show HN: Accent AI – real-time speech clarity drills (pronunciation,stress etc.)

https://apps.apple.com/us/app/accent-ai-pronunciation-coach/id6747029788
1•wabiosdev•7m ago•0 comments

ANN v3: 200ms p99 query latency over 100B vectors

https://turbopuffer.com/blog/ann-v3
1•jascha_eng•7m ago•0 comments

ngn/k

https://codeberg.org/ngn/k
1•tosh•10m ago•0 comments

The CPU Performance of Nvidia GB10 with the Dell Pro Max vs. AMD Ryzen AI Max+

https://www.phoronix.com/review/nvidia-gb10-cpu
1•rbanffy•10m ago•0 comments

An In-Depth Look at Pipe and Splice Implementation in Linux Kernel

https://blogs.oracle.com/linux/pipe-and-splice
1•tanelpoder•10m ago•0 comments

Show HN: A Chrome extension that dings when ChatGPT is done "thinking"

https://github.com/rumblelab/chatdinger
1•mooball•11m ago•1 comments

Is Nvidia Assembling the Parts for Its Next Inference Platform?

https://www.nextplatform.com/2026/01/16/is-nvidia-assembling-the-parts-for-its-next-inference-pla...
1•rbanffy•11m ago•0 comments

Empty

https://trufa.dev/blog/empty.html
3•Trufa•12m ago•0 comments

Physicists place sodium atoms in a 'Schrödinger's cat state'

https://phys.org/news/2026-01-metal-clumps-quantum-state-physicists.html
1•fcpguru•12m ago•0 comments

What's new in Java 26 for us, developers

https://www.loicmathieu.fr/wordpress/informatique/java-26-whats-new/
2•loicmathieu•13m ago•1 comments

Venezuela Statehood Thought Experiment

https://booksven.com
1•ARho24•13m ago•1 comments

People imperiled through sign-in links sent by SMS

https://arstechnica.com/security/2026/01/millions-of-people-imperiled-through-sign-in-links-sent-...
1•Brajeshwar•14m ago•0 comments