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

Ask HN: How valuable is a domain like messenger.new?

1•darkhorse13•1m ago•0 comments

Why UBI is a trap and Universal Basic Equity is the fix

https://medium.com/@augustinsayer/why-ai-may-be-marxs-inadvertent-vindication-85689d8ad733
2•gussayer•4m ago•0 comments

Thoughts of a Neopagan / the Reconstruction of Neolithic Religion

1•5wizard5•5m ago•0 comments

Pyversity with Thomas van Dongen (Springer Nature)

1•CShorten•5m ago•0 comments

Affordances: The Missing Layer in Front End Architecture

https://fractaledmind.com/2025/12/01/ui-affordances/
1•Kerrick•7m ago•0 comments

(mis)Translating the Buddha (2020)

http://neuroticgradientdescent.blogspot.com/2020/01/mistranslating-buddha.html
1•eatitraw•8m ago•0 comments

The History of Xerox – A Monochromatic Star

https://www.abortretry.fail/p/the-history-of-xerox
1•rbanffy•11m ago•0 comments

Deprecations via warnings don't work for Python libraries

https://sethmlarson.dev/deprecations-via-warnings-dont-work-for-python-libraries
2•scolby33•11m ago•0 comments

Even rentals in San Francisco have bidding wars

https://sfstandard.com/2025/12/08/sf-apartment-rentals-bidding-wars/
2•randycupertino•11m ago•1 comments

WSJ article on Tennessee munitions plant explosion exposes an industry

https://www.wsws.org/en/articles/2025/11/19/qvwk-n19.html
2•PaulHoule•11m ago•0 comments

A history of AI in two line paper summaries (part one)

https://xquant.substack.com/p/what-if-we-simply-a-history-of-ai
1•nb_quant•12m ago•0 comments

Show HN: Kernel-Cve

https://www.kernelcve.com/
1•letmetweakit•12m ago•1 comments

Is This the End of the Free World?

https://paulkrugman.substack.com/p/is-this-the-end-of-the-free-world
2•rbanffy•13m ago•0 comments

Do Not Encrypt IDs

https://notnotp.com/notes/do-not-encrypt-ids/
1•enz•13m ago•0 comments

Eddie Slovik Became the Only U.S. Soldier Executed for Desertion in WWII

https://www.military.com/daily-news/investigations-and-features/2025/12/05/death-firing-squad-edd...
2•almosthere•14m ago•0 comments

Dave's J.S. Bach Page

http://www.jsbach.net/index.html
1•craigcannon•14m ago•0 comments

The Gerrit code review iceberg

https://www.haiku-os.org/blog/pulkomandy/2025-11-24-the_gerrit_pending_review_iceberg
1•birdculture•15m ago•0 comments

Show HN: Track traffic and conversion from AI search

https://www.tryanalyze.ai/
1•ErnestBogore•15m ago•0 comments

Show HN: Nogic – VS Code extension that visualizes your codebase as a graph

https://marketplace.visualstudio.com/items?itemName=Nogic.nogic
2•davelradindra•16m ago•0 comments

All that matters is winning

https://www.ryanhoover.me/post/all-that-matters-is-winning
1•rrhoover•17m ago•1 comments

Horsepower: Interactions between China, Mongolia and the steppe 2000-0 BCE

https://www.horsepowerproject.org
1•bryanrasmussen•18m ago•0 comments

Show HN: Edge HTTP to S3

https://edge.mq/
1•_ben_•19m ago•1 comments

PRQ sued by .se domain registry

https://nixsanctuary.com/prq-former-wikileaks-pirate-bay-host-battles-iis-swedens-se-nu-registry-...
1•immibis•22m ago•0 comments

Layout Detector MCP

https://github.com/katlis/layout-detector-mcp
1•pwython•23m ago•1 comments

Meta commits to give EU users choice on personalised ads under DMA

https://digital-markets-act.ec.europa.eu/meta-commits-give-eu-users-choice-personalised-ads-under...
5•ChrisArchitect•24m ago•3 comments

Instagram and Facebook Users in Europe Get Option of Sharing Less Data

https://www.nytimes.com/2025/12/08/business/instagram-facebook-eu-data.html
3•donohoe•26m ago•0 comments

Building a coding agent that uses Postgres branches

https://xata.io/blog/a-coding-agent-that-uses-postgres-branches
1•tudorg•26m ago•0 comments

How to make a flight controller (from scratch)

https://notaroomba.dev/simpleflightcontroller
1•NotARoomba•28m ago•0 comments

Monk 1: what are you drawing?

https://twitter.com/TimothyEveland/status/1997895228745802219
1•keepamovin•29m ago•0 comments

How to implement action sequences and cutscenes

https://edw.is/how-to-implement-action-sequences-and-cutscenes/
1•atomlib•31m ago•0 comments