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?

How Intel Came Crashing Back to Earth After Its Trump Bump

https://www.wsj.com/tech/intel-problems-trump-bump-17d2c941
1•ViktorRay•55s ago•0 comments

Curl removes bug bounties, citing AI-generated spam reports

https://github.com/curl/curl/pull/20312
1•bateller•1m ago•0 comments

Show HN: Alien Abducto-rama: a FUN browser game I made with my kids

https://studio.mfelix.org/alien-abductorama/
1•threekindwords•2m ago•0 comments

Show HN: Share private Git repo activity without granting code access

https://www.gipulse.dev
2•kevinbaur•3m ago•0 comments

PhantomMusic – Neural spiking data transformed into music

https://phantommusic.elabbassi.com/
1•yelabbassi•4m ago•1 comments

ArXiv preprint server clamps down on AI slop

https://www.science.org/content/article/arxiv-preprint-server-clamps-down-ai-slop
1•bikenaga•5m ago•0 comments

OpenWV: Open Reimplementation of Google's Widevine Content Decryption Module For

https://github.com/tchebb/openwv
1•fanf2•6m ago•0 comments

Thanks to AI, Your Waterfall Is Showing

https://codemanship.wordpress.com/2026/01/24/thanks-to-ai-your-waterfall-is-showing/
1•mpweiher•6m ago•0 comments

Hallucination Stations: Limitations of Transformer-Based Language Models (2025)

https://arxiv.org/abs/2507.07505
1•cainxinth•6m ago•0 comments

Finding Related Items (2011)

http://bentilly.blogspot.com/2011/02/finding-related-items.html
1•tosh•8m ago•0 comments

Introduction to Computational Thinking by Grant Sanderson (3b1B) and MIT

https://ocw.mit.edu/courses/18-s191-introduction-to-computational-thinking-fall-2020/
1•kerim-ca•11m ago•0 comments

Liquid Bingo: Apple Product release bingo

https://substack.com/@joshuaherman/note/c-204382436
1•zitterbewegung•12m ago•0 comments

Critical Systems Thinking

https://bcghendersoninstitute.com/critical-systems-thinking-with-michael-c-jackson/
1•andsoitis•13m ago•0 comments

NASA's Artemis 2 moon rocket is on the launch pad: What's next?

https://www.space.com/space-exploration/human-spaceflight/nasas-artemis-2-moon-rocket-is-on-the-l...
1•mpweiher•14m ago•0 comments

Did Justin Sun buy his way out of an SEC lawsuit for $75M?

https://thebitgazette.com/did-justin-sun-buy-his-way-out-of-an-sec-lawsuit-for-75-million/
3•campusninja•19m ago•1 comments

Why 'market cap' doesn't mean what you think it means, and why it matters

https://thebitgazette.com/why-market-cap-doesnt-mean-what-you-think-it-means-and-why-it-matters/
2•campusninja•22m ago•1 comments

Dear America

https://dennisforbes.ca/blog/2026/01/dear_america/
2•llm_nerd•23m ago•0 comments

Endfield DB: An open-source production calculator for Arknights: Endfield

https://endfielddb.com/
1•causalzap•23m ago•1 comments

The Physics of Learning (and Why Almost No One Uses It)

https://twitter.com/justinskycak/status/2014496697481605246
2•JustinSkycak•24m ago•0 comments

Show HN: AI Advisory Board

https://stratis.one/
1•gewing•28m ago•0 comments

Exposing Game Servers over Tailscale

https://chameth.com/exposing-game-servers-over-tailscale/
1•PaulHoule•30m ago•0 comments

Coi – WebAssembly for the Modern Web

https://io-eric.github.io/coi/
1•todsacerdoti•30m ago•0 comments

3D-Printed Mathematical Lampshades

https://hessammehr.github.io/blog/posts/2025-12-24-maths-to-lampshade.html
2•hessammehr•31m ago•0 comments

Human Progress Data

https://humanprogress.org/datasets/
1•hubraumhugo•31m ago•0 comments

Show HN: MetaPurge – Strip metadata and timestamps from images/PDFs

https://github.com/XORD-AI/MetaPurge
1•Prof_Sigmund•33m ago•1 comments

Computers Can't Surprise

https://aeon.co/essays/sure-ai-can-do-writing-but-memoir-not-so-much
1•Brajeshwar•36m ago•0 comments

TR-49 is interactive fiction for fans of deep research rabbit holes

https://arstechnica.com/gaming/2026/01/tr-49-is-interactive-fiction-for-fans-of-deep-research-rab...
1•Brajeshwar•36m ago•0 comments

In 1932, Australia Started an 'Emu War'–and Lost

https://www.atlasobscura.com/articles/the-great-emu-war-australia
1•Brajeshwar•37m ago•0 comments

An open-source Git extension for tracking AI code

https://usegitai.com/
1•gempir•38m ago•0 comments

Can Time Be Computed? Part II

https://softwarefrontier.substack.com/p/can-time-be-computed-part-ii
2•CortexFlow•38m ago•2 comments