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?

A free, no-login Web UI for Qwen-Image-2512

https://zimage.run/
1•yanaimngvov•44s ago•1 comments

Investigating and fixing a nasty clone bug

https://kobzol.github.io/rust/2025/12/30/investigating-and-fixing-a-nasty-clone-bug.html
1•lukastyrychtr•2m ago•0 comments

Sparklers on champagne bottles likely cause of deadly Swiss bar fire

https://www.bbc.com/news/articles/cq6v41jg9jzo
1•ksec•3m ago•0 comments

Google engineer says Claude Code built in one hour what her team spent a year on

https://the-decoder.com/google-engineer-says-claude-code-built-in-one-hour-what-her-team-spent-a-...
2•ksec•6m ago•0 comments

Show HN: macOS Util for Deep Focus, Live Transcript and AskAI Anywhere

https://overlayai.app
1•ckkampy•6m ago•0 comments

Show HN: I built a "Do not disturb" Device for my home office

https://apoorv.page/blogs/over-engineered-dnd
1•quacky_batak•6m ago•0 comments

RR Interpreter – R interpreter with RPython

https://rr-roadmap.onrender.com/#/blog/introducing-rr-interpreter
1•danielcosmin•8m ago•0 comments

Building an Ansible training environment with FreeBSD jails

https://jpmens.net/2019/12/11/on-building-an-ansible-training-environment-on-freebsd/
1•fanf2•11m ago•0 comments

Astronomers measure both mass and distance of a rogue planet

https://phys.org/news/2026-01-astronomers-mass-distance-rogue-planet.html
1•Brajeshwar•13m ago•0 comments

Chess960's random setups still favor white, new study reveals

https://phys.org/news/2026-01-chess960-random-setups-favor-white.html
1•Brajeshwar•13m ago•0 comments

Tractor beams inspired by sci-fi are real, could solve space junk problem

https://www.livescience.com/space/space-exploration/tractor-beams-inspired-by-sci-fi-are-real-and...
1•Brajeshwar•13m ago•0 comments

That is such a wild story I've made like 50 of them toda

https://www.squarefacesgenerator.com/
1•macybosts•15m ago•1 comments

From Sparks to Silicon

https://jeevan.life/theapplefalls/
2•ssunboyy•17m ago•5 comments

US Launches Large Scale Strike to Capture Maduro

https://www.foxnews.com/world/explosions-venezuelan-capital-caracas-reports
2•silexia•18m ago•0 comments

Task engine VM where tasks can contain own executable instructions

https://github.com/tracyspacy/spacydo
1•tracyspacy•20m ago•1 comments

Show HN: I built Planndu when task lists stopped working for me

https://planndu.com/
1•bashmaster•21m ago•0 comments

List of Atrocities committed by US authorities

https://github.com/dessalines/essays/blob/main/us_atrocities.md
4•guerrilla•23m ago•0 comments

My Favorite Books of 2025

https://theaiunderwriter.substack.com/p/my-favorite-books-of-2025
1•participant26•30m ago•1 comments

I Didn't Buy Traffic – I Built a Growth Engine Instead

https://www.google.com/search?q=site%3Avect.pro&oq=&gs_lcrp=EgZjaHJvbWUqCQgAECMYJxjqAjIJCAAQIxgnG...
1•WoWSaaS•32m ago•1 comments

Ask HN: Any team-wide experience with vibe coding?

1•tpetrina•34m ago•1 comments

Confidence Required

https://sive.rs/confidence
2•herbertl•35m ago•0 comments

Show HN: Jetbase – A Python database migration tool (Alembic alternative)

https://github.com/jetbase-hq/jetbase
2•jaz1•40m ago•0 comments

Show HN: I made a tool to strip GPS and EXIF metadata from photos client-side

https://metarefresh.net/
2•BenjaminHas•41m ago•6 comments

Semiconductor Fabs II: The Operation

https://nomagicpill.substack.com/p/semiconductor-fabs-ii-the-operation
1•nomagicpill•42m ago•0 comments

Build Anything With the Interrogation Method

https://mough.xyz/2026/01/you-can-create-anything/
1•moughxyz•43m ago•0 comments

Stoolap 0.2 Released for Modern Embedded SQL Database in Rust

https://www.phoronix.com/news/Stoolap-0.2-Rust-Embedded-SQL
2•mikece•43m ago•0 comments

Louis Mosley of Palantir at the Science, Innovation and Technology Committee

https://committees.parliament.uk/oralevidence/16290/html/
1•macleginn•46m ago•0 comments

Classroom Phone Bans Work. So Why Don't All Schools Do It?

https://www.wsj.com/us-news/education/school-phone-ban-test-scores-66f8dab7
1•Fiveplus•47m ago•0 comments

Common pesticides and plastic chemicals stifle healthy gut bacteria

https://www.thenewlede.org/2025/11/pesticides-gut-microbiome-bacteria/
1•PaulHoule•49m ago•0 comments

BlueSCSI Ultra and Ultra Wide

https://bluescsi.com/ultra
2•p_ing•50m ago•0 comments